Page is a not externally linkable
hiccupsheadache - 12:19 pm on Mar 20, 2012 (gmt 0)
Thanks for the reply lucy24, but i'm sorry - i don't know what you mean :(
Are you saying that because they are real directories - the "/" will be added automatically?
Could i change my htaccess file to this...
And www will be added, and / will be added?
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ^-?$
RewriteRule ^ - [F]
#
# Define canonical hostname (add "www" if it is missing)
RewriteCond www.%{HTTP_HOST} ^(www\.)?(www\.[a-z-]+\.[a-z]{2,6})\.?(:[0-9]+)?$ [NC]
RewriteRule ^ - [E=MyHostName:%2]
#
# Externally redirect to canonical "www" subdomains
RewriteCond %{HTTP_HOST} !^(www\.[a-z-]+\.[a-z]{2,6}\.?(:[0-9]+)?)?$ [NC]
RewriteRule ^(.*)$ http://%{ENV:MyHostName}/$1 [R=301,L]
#
ErrorDocument 404 /404.php
I've been trying since i made this post now - and i don't feel like i'm getting any closer! the language used in a htaccess file is so complicated to understand! lol.
My subdomains goes to a page cannot be displayed -- and every little change to the existing code - stops the site working completly. :)