LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > rewrites are redirecting

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2008, 04:23 PM
suffeks suffeks is offline
New Member
 
Join Date: Oct 2008
Posts: 2
Default rewrites are redirecting

hi,

i seem to have a problem with some rewrites. i couldn't find a solution after searching.

example:

RewriteRule ^page/([0-9]+)$ http://www.example.com/page.php?id=$1

it kinda works, if you request /page/1 it will load page.php?id=1, but it redirects to that php file, instead of leaving /page/1 in the address bar.

at the top of my .htaccess i have:

Options +FollowSymLinks
RewriteEngine on


anyone know what the problem might be?
Reply With Quote
  #2  
Old 10-04-2008, 07:50 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Get rid of "http://www.example.com" from the destination URL.
Reply With Quote
  #3  
Old 10-04-2008, 08:04 PM
suffeks suffeks is offline
New Member
 
Join Date: Oct 2008
Posts: 2
ah yes... that works!

thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:25 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.