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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Mod Rewrite Issue

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2008, 12:31 PM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
Default Mod Rewrite Issue

I used to use the following rewrite rule in .htaccess but now it is not working correctly...

1. RewriteRule ^([a-zA-Z0-9_-]+)$ u.php?$1
2. RewriteRule ^([a-zA-Z0-9_-]+)/$ u.php?$1

1. This rule should take http://www.domain.com/user to http://www.domain.com/u.php?user

2. This rule should take http://www.domain.com/user/ to http://www.domian.com/u.php?user (This one checks for trailing slash)

Rule 1 works. Rule 2 does not, it points to http://www.domain.com/user/u.php?user

It used to work but now it doesn't, we didn't change anything except upgrade to latest versions. Any ideas?
Reply With Quote
  #2  
Old 10-13-2008, 01:02 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We could not reproduce it in our lab, both rule work as expected.

But any way, you can change the second rewrite rule to

RewriteRule ^([a-zA-Z0-9_-]+)/$ /u.php?$1
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 04:01 PM.



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