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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Mod-Rewrite

Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2004, 10:06 PM
Channel_Cat Channel_Cat is offline
Member
 
Join Date: Sep 2004
Posts: 11
Default Mod-Rewrite

I'm using the latest free litespeed 2, which is working great except for the htaccess

I cannot get the htaccess file working. I've tried everything from checking permissions of .htaccess to adding it to context. I would love to port my site over, but currently i cannot

I would be really great if mod_rewrite was internal, as i hope to use litespeed to keep my server alive when many people use it at once.

Here's a snippet of my .htaccess (I've tried using different combinations of it, none of which worked)


RewriteEngine On

#static redirects
RewriteRule ^logout[/]?$ /index.php?logout=true
RewriteRule ^search[/]?$ /index.php?act=art_search
RewriteRule ^forum[/]?$ /index.php?act=forum_main
RewriteRule ^updates[/]?$ /index.php?act=user_updates
RewriteRule ^inbox[/]?$ /index.php?act=user_inbox
RewriteRule ^outbox[/]?$ /index.php?act=user_outbox
RewriteRule ^inbox/success[/]?$ /index.php?act=user_inbox&action=success
RewriteRule ^inbox/compose[/]?$ /index.php?act=user_inbox&action=compose
RewriteRule ^settings[/]?$ /index.php?act=user_settings
RewriteRule ^gallery[/]?$ /index.php?act=art_gallery
RewriteRule ^online_users[/]?$ /index.php?act=users_online
RewriteRule ^comment[/]?$ /index.php?act=user_comment
RewriteRule ^emoticons[/]?$ /index.php?act=emoticons
RewriteRule ^stats[/]?$ /index.php?act=stats
RewriteRule ^my/journal[/]?$ /index.php?act=journal_edit
RewriteRule ^my/favorites[/]?$ /index.php?act=user_favorites
RewriteRule ^my/watch[/]?$ /index.php?act=user_watch


I've spent hours and hours (even tried getting squid working as an alternative), and I'm about ready to rip my hair out on this one!

Any help is GREATLY appreciated

--Channel Cat

--Edit
I was able to get it working FINALLY after fixing the error it was getting while trying to open the access log file, only to find out rewrites are a little bit different than apache and are EXTREMELY tempermental :-( I do have to change my entire rewrite file, but atleast it works :-/

OKAY LAST EDIT THIS IS IMPORTANT
all of my rewrites past the 47th rewrite do not work
I don't know if this is a bug or a limit. I can be more conservative for now, but i really hope this gets resolved!
Reply With Quote
  #2  
Old 09-21-2004, 08:48 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Would you mind giving an example about the subtle differences? Does it relate to "RewriteBase"? We'd like to fine tune the rewrite engine compatible with Apach's as much as we can. Thank you.

Please download the latest 2.0RC2 release, a rewrite bug in 2.0RC1 has been fixed.

Please let me know the result.

Thanks,
George Wang
Reply With Quote
  #3  
Old 09-21-2004, 11:58 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
2.0RC2 package has been updated, please download it again.

Your original Apache rewrite rule should works fine with LiteSpeed now, please change rules back, sorry about the trouble.

Couple suggestions to improve the rewrite efficience:
If possible, add rewrite rules to virtual host configuration instead of being inside a .htaccess file.
To append "[L]" flag to the end of each rewrite rule to save some time on unnecessary rule matching.
To reorder your rules based on request volume.

There is no limit on URL rewrite, please let me it works or not.

Best regards,
George Wang
Reply With Quote
  #4  
Old 09-21-2004, 01:57 PM
Channel_Cat Channel_Cat is offline
Member
 
Join Date: Sep 2004
Posts: 11
okay cool, I'll upgrade immediately. Thanks for fixing the problem, you guys work fast!!!

I'll also fix up my rewrite, those are some great suggestions....

Thank you once again for your support!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rewrite Engine does not pick up correct REQUEST_FILENAME when using PATH_INFO dreamscape Bug Reports 3 04-19-2007 05:44 PM
Best way to redirect legacy URLs with Rewrite Map? subBlue Install/Configuration 1 01-18-2007 09:51 AM
Rewrite before reverse proxy? jburks725 Install/Configuration 1 01-18-2006 12:17 PM
Rewrite not doing anything at all? pcguru Install/Configuration 1 12-07-2005 03:04 PM
rewrite content limit Channel_Cat Bug Reports 1 09-21-2004 03:37 PM


All times are GMT -7. The time now is 04:23 PM.



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