paulseatonsmith - Posts

Return to advanced search

Re: Rewrite Rules for non-www to www redirects to IP address

Thanks Finally got it working.. I think it was confused by further URL rewriting rules before it so I put it to the top of .htaccess Options +Indexes +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.rightsizesolutions\.co.uk$ [OR,NC] RewriteCond %{HTTP_HOST} ^176\.34\.235\.230 [NC] R...
by paulseatonsmith
Wed Jan 04, 2012 12:51 pm
 
Forum: Apache mod Rewrite
Topic: Rewrite Rules for non-www to www redirects to IP address
Replies: 8
Views: 4211

Re: Rewrite Rules for non-www to www redirects to IP address

Well I spoke to soon.

Doesn't seem to work properly on IE - some images are not displayed correctly when accessing without the www.

Is my syntax correct?
by paulseatonsmith
Wed Jan 04, 2012 10:18 am
 
Forum: Apache mod Rewrite
Topic: Rewrite Rules for non-www to www redirects to IP address
Replies: 8
Views: 4211

Re: Rewrite Rules for non-www to www redirects to IP address

Amazing - thank you so much for the quick response. In case anyone else comes across this I had to change my .htaccess files (I have a few) from Options +Indexes +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !^-www\.rightsizesolutions\.co.uk$ [NC] RewriteRule ^(.*)$ -http://www.rightsize...
by paulseatonsmith
Tue Jan 03, 2012 2:36 pm
 
Forum: Apache mod Rewrite
Topic: Rewrite Rules for non-www to www redirects to IP address
Replies: 8
Views: 4211

Rewrite Rules for non-www to www redirects to IP address

I have the following in .htaccess in apache2/htdocs Options +Indexes +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.rightsizesolutions\.co.uk$ [NC] RewriteRule ^(.*)$ http://www.rightsizesolutions.co.uk/$1 [L,R=301] but when I type -rightsizesolutions.co.uk into a browser it resolv...
by paulseatonsmith
Tue Jan 03, 2012 1:48 pm
 
Forum: Apache mod Rewrite
Topic: Rewrite Rules for non-www to www redirects to IP address
Replies: 8
Views: 4211

Return to advanced search