Forum Moderators: phranque
This is my first post, after reading a lot of threads i decided to ask my own question. Maybe I'll get an answer that will work.
Here is the thing:
I have some .cc and .it domains which I would like to host them on my hosting account so I set an A record to point them to my hosting IP.
There I added this lines to the .htaccess:
RewriteCond %{HTTP_HOST} ^site\.it$ [OR]
RewriteCond %{HTTP_HOST} ^www\.site\.it$
RewriteCond %{REQUEST_URI} !^/local_directory_path/
RewriteRule (.*) /local_directory_path/$1
I get an 404 error: "The requested URL /local_directory_path/site.it/ was not found on this server."
It works for all .cc but it doesn't work for the .it domains, may I ask why?
Either that, or there is some difference in how you configured this "add-on domain."
The question here is "How did 'site.it/' get appended to the URL-path?"
Side note: Your first two RewriteConds above reduce to
RewriteCond %{HTTP_HOST} ^(www\.)?site\.it
Jim
It could be:
Jim