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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Rewrite rules won't 'take'

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2009, 12:35 AM
radixhound radixhound is offline
Member
 
Join Date: Feb 2007
Posts: 11
Default Rewrite rules won't 'take'

Hi,

I'm experiencing a royal pain with a virtual host. I deleted it earlier today and re-created it. Now I've re-set the rewrite rules and they are not 'taking'. I keep editing the rule and the result doesn't change. For example, I changed it to redirect from www.mysite.ca to mysite.ca but it's not doing that, it's still redirecting from mysite.ca to www.mysite.ca.

All I really need is the redirect from / to /home.

Is there any chance that some of the settings from the old deleted virtual host are still being remembered and over-riding the settings I'm putting in there?

This is all I'm trying to do...

Code:
RewriteCond %{HTTP_HOST} !^mysite\.ca$ [NC]
RewriteRule .* http://mysite.ca/ [L,R=301]

RewriteRule ^/$ /home [L,R=301]
Reply With Quote
  #2  
Old 09-10-2009, 01:06 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
try
Code:
RewriteCond %{HTTP_HOST} !^mysite\.ca$ [NC]
RewriteRule (.*) http://mysite.ca/$1 [L,R=301]

RewriteRule ^/$ http://mysite.ca/home [L,R=301]
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 11:30 PM.



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