htaccess?
- Started
- Last post
- 1 Response
- bainbridge
I want my site to always have www. in the address and have all 404 pages and indexes (like /images) redirect to my index. That's 403?
Is there anything wrong with adding those three things?
Are these correct?
# Always use www in the domain
# Replace 'example.com' with your domain name
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([a-z.]+)?example\.com$ [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .? http://www.%1example.com%{REQUES…... [R=301,L]ErrorDocument 404 http://www.example.com/
RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^example\.com\/?(.*)$ "http\:\/\/www\.example\.com\/$1... [R=301,L]ErrorDocument 403 http://www.example.com/
RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^example\.com\/?(.*)$ "http\:\/\/www\.example\.com\/$1... [R=301,L]
- sted0
who what the f :D
read this:
http://searchengineland.com/url-…use that:
http://www.htaccesscheck.com/