473,507 Members | 12,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redirecting to First Page

5 New Member
Hii

I have an Smf forum, and i installed SEO4SMF to my forum and i made some modifications to my htaccess file.but after doing so everything works fine
but i noticed that after going to some board in that board i a lot of topics
so that there are some pages like [1][2]...[10] pages
when i clicked on the page 2 it just redirects me to the first page..
what i have to do????

here is my htaccess file

Expand|Select|Wrap|Line Numbers
  1. AddHandler asp.net aspx
  2. AddHandler application/x-httpd-php4 .php .php5 .php4 .php3 
  3. RewriteEngine on
  4.  
  5. #Some apache servers need Rewritebase.
  6. #delete # from start of Rewrite base to enable it.
  7. #If your forum is something like http://www.forum-example.com/forum then modify your 
  8. #RewriteBase in this way: RewriteBase /forum
  9.  
  10. RewriteBase /
  11.  
  12. #Archive/Sitemaps
  13. RewriteRule ^sitemaps-([a-zA-Z0-9-]*)\.html index.php?dummy=1&action=seo4smfsitemaps&sa=$1 [L]
  14.  
  15. #uncomment if you use beautifying url actions 
  16. #RewriteCond %{REQUEST_METHOD} =GET
  17. #RewriteCond %{QUERY_STRING} ^action=(.*)$
  18. #RewriteRule  ^(.*)$ seo4smf-redirect.php?a=%1 [R=301,L]
  19.  
  20. RewriteCond %{QUERY_STRING} ^topic=([0-9]*)$
  21. RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%1 [R=301,L]
  22.  
  23. RewriteCond %{QUERY_STRING} ^topic=([0-9]*).([0-9]*)
  24. RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%1 [R=301,L]
  25.  
  26. RewriteCond %{QUERY_STRING} ^board=([0-9]*).([0-9]*)
  27. RewriteRule  ^(.*)$ seo4smf-redirect.php?b=%1 [R=301,L]
  28.  
  29. RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*);(.*)$
  30. RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1;param=%2 [R=301,L]
  31.  
  32. RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*)
  33. RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1 [R=301,L]
  34.  
  35. #Tiny Portal Old Url's
  36. RewriteCond %{QUERY_STRING} ^page=([0-9]*)
  37. RewriteRule  ^(.*)$ seo4smf-redirect.php?p=%1 [R=301,L]
  38.  
  39. #Rewrite Old urls
  40. RewriteRule  ^index.php/board,(.*).html seo4smf-redirect.php?b=$1 [R=301,L]
  41. RewriteRule  ^index.php/board,(.*).html;(.*) seo4smf-redirect.php?b=$1&o=$2 [R=301,L]
  42.  
  43. RewriteRule  ^index.php/topic,(.*).html seo4smf-redirect.php?t=$1 [R=301,L]
  44. RewriteRule  ^index.php/topic,(.*).html;(.*) seo4smf-redirect.php?t=$1&o=$2 [R=301,L]
  45.  
  46. #Bad Url's
  47. #RewriteCond %{REQUEST_URI} ^(.*)\.html$
  48. #RewriteCond %{REQUEST_URI} !^(.+)/(.*)-t([0-9]*)\.([0-9]*).html$
  49. #RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html seo4smf-redirect.php?t=$2 [R=301,L]
  50.  
  51. RewriteRule  ^(.*)/-t(.*).html seo4smf-redirect.php?t=$2 [R=301,L]
  52. RewriteRule  ^-b(.*)/$ seo4smf-redirect.php?b=$1 [R=301,L]
  53. RewriteRule  ^-b(.*)/(.*)$ seo4smf-redirect.php?b=$1 [R=301,L]
  54. RewriteRule  ^(.*)/-b(.*)/$ seo4smf-redirect.php?b=$2 [R=301,L]
  55.  
  56. #New board URL's
  57. RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/;(.*) index.php?dummy=1&board=$2.$3&$4 [L]
  58. RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/$ index.php?dummy=2&board=$2.$3 [L]
  59. RewriteRule ^(.*)-b([0-9]*)\.([0-9])$ index.php?dummy=2&board=$2.$3 [L]
  60.  
  61. #New topic URL's
  62. RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*);(.*)$ index.php?dummy=1&topic=$2.$4&$6 [L]
  63. RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*) index.php?dummy=1&topic=$2.$4 [L]
  64. RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;(.*)$ index.php?dummy=1&topic=$2.$3&$4 [L]
  65. RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html$ index.php?dummy=1&topic=$2.$3 [L]
  66.  
  67. #New profiles URL's
  68. RewriteRule ^(.*)-u([0-9]*)\.html;sa,(.*);start,([0-9]*);delete,([0-9]*);sesc,([a-z0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4;delete=$5;sesc=$6 [L]
  69. RewriteRule ^(.*)-u([0-9]*)\.html;sa,(.*);start,([0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4 [L]
  70. RewriteRule ^(.*)-u([0-9]*)\.html;sa,(.*)$ index.php?dummy=1&action=profile;u=$2;sa=$3 [L]
  71. RewriteRule ^(.*)-u([0-9]*)\.html index.php?dummy=1&action=profile;u=$2 [L]
  72.  
  73. #New Tinyportal Articles URL's
  74. RewriteRule ^(.*)-p([0-9]*)\.html index.php?dummy=1&page=$2 [L]
  75.  
  76. #New action Url's - uncomment if you use beautifying url actions 
  77. #RewriteRule ^(.*)\.html(.*)$ index.php?dummy=1;action=$1;$2 [L]
  78. #RewriteRule ^(.*)\.html$ index.php?dummy=1;action=$1 [L]
  79.  
  80. #Sitemaps
  81. RewriteRule sitemap.xml sitemaps.php [L]
  82. RewriteRule urllist.txt urllist.php [L]
  83.  
Please anybody help me
here is an example
http://www.legendarydevils.com/misc-b53.0/
Nov 25 '07 #1
1 2586
pbmods
5,821 Recognized Expert Expert
Heya, dheeraj4uuu.

At the top of your PHP script, add this line;
Expand|Select|Wrap|Line Numbers
  1. print_r($_GET);
  2.  
to see whether the problem is your mod_rewrite commands or your PHP paging script.
Nov 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2311
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the...
1
1267
by: Ankur Jain | last post by:
Hi, I am facing a very weird problem while redirecting to another page. The problem is as follows: I have a website. I build the solution and run the application. The first page is the login...
0
1095
by: James Wallace | last post by:
Is it possible to use forms authentication in the web.config file and FormsAuthentication.RedirectFromLoginPage with an asp page so that when the asp page is set to startup page on the project that...
4
1482
by: Greg Smalter | last post by:
Redirecting from page to page within a web project is pretty easy. However, all Redirect methods take strings as arguments, as if you mistype the string, you don't find out until run time that you...
1
3750
by: Jeremy Chapman | last post by:
I have built a web app. While testing I have found that if I browse to a page in the app, then get redirected to the login page and enter my credentials. The...
2
1979
by: Gary Coutts | last post by:
Hi, I am have problems redirecting from a login page. The login page is simple, with just 2 textboxes and one button. On the button click the routine below is called: I am using: Visual...
0
1206
by: Dynamo | last post by:
Firstly, many thanks to those who replied to my dreaded what if question. As a result I have now been able to partially resolve my problem as follows: step 1 - User clicks on "buy me" button step...
3
2360
by: Katie | last post by:
Hi, I want to be able to send users links to pages in my website. But if they arent logged in I want them to first be redirected to the login page and after they login automatically be...
7
1319
by: laredotornado | last post by:
Hello, I'm using PHP 4.4.4. After processing some data, I'd like to redirect to another page for further data processing. The way I'm redirecting right now is header("Location:...
41
3184
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7110
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.