473,657 Members | 2,418 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 2592
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
2322
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 main page from the code behind the contents page. I want to do this to allow the use of asp "linkbuttons" instead of hyperlinks so I can do a little processing before redirecting. The main reason for this to prevent hyperlinks of pages that have...
1
1272
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 page. I enter a valid login and password and click the "login" button. The click event call the database and validates the information. After verification the Response.Redirect is fired. The problem comes here. The redirected page does not come up....
0
1100
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 a redirection will go to the login page and allowing the authentication to occur before going to the asp page. I have an asp page that I want to redirect to after authenticating and if I set the asp as the startup page it starts up with that...
4
1487
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 are redirecting to somewhere that doesn't exist. Worse, if you do type it correctly, but then later the page name changes or the page moves, you still won't find out until run time. I have a framework that solves this problem and guarantees,...
1
3762
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 FormsAuthentication.RedirectFromLoginPage call is redirecting to the default.aspx page rather than the original page the user was at. Here is the details of my application: Web.config: <authentication mode="Forms">
2
1990
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 Studio 2003 Version 7.1.3008 Framework 1.1 Version 1.1.4322 SP1 Windows XP Pro Version 2002 SP2
0
1213
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 2 - He is sent to a confirmation page to confirm purchase or cancel purchase. step 3 - Confirmation page first checks the pending transaction table and deletes all records that are older than 20mins. step 4 - Confirmation page then checks the...
3
2368
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 redirected to the page i sent them in the link. How would i accomplish this. Thanks for your time and help :)
7
1330
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: next_page.php"); However, as you know this causes information to be sent to the client before the next page is contacted. Is there a way I can go to
41
3215
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 resolve this issue once and for all now. The problem might be PHP related but since I only develop applications using PHP, I'm not a hundred percent sure. Therefor I've taken the liberty to crosspost to comp.lang.php and alt.www.webmaster. I...
0
8402
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8315
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8829
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8734
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8508
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6172
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5633
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1627
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.