veridicus, thanks for the reply.
Quote:
|
Try setting your default doc for the subdirectory to your default doc (index.htm, index.php, etc.).
|
Do you mean to have it forward to
http://xona.com/domainhacks/index.html ? If so, the reason I do not do this is to have the URL very clean, so it shows off just two things: 1) "xona.com", which is also the name of the site, "Xona.com", not "Xona", and 2) "domainhacks" which is the name of the content/utility. This is purely a personal choice.
Quote:
|
You realize your htaccess is set to only redirect URLs containing the /, right? The line stating 301 is expecting a /.
|
I did not realize this. I thought it was redirecting anything that does not begin with "xona.com" (after the "http://") To be sure you and I are on the same page, are these the .htaccess lines ou are referring to (quoted below)?
Code:
RewriteCond %{HTTP_HOST} !^xona\.com [NC]
RewriteRule ^(.*)$ http://xona.com/domainhacks/$1 [R=301]
Stilil on the same topic, refering the the quoted .htaccess code above, and recalling that this is the .htaccess file in the "domainhacks" folder... I thought this rules says: "If the URL does not start with "xona.com", then make the URL equal "http://xona.com/domainhacks/$1" where "$1" is everything after "domainhacks/" in the original URL." Please, if you can, clarify this for me!
Quote:
Your root htaccess can do all of the redirects. Unless you really need to do something unique in a subdirectory I suggest doing everything in the root.
Why send everything back to the non-www URLs?
|
This is exactly what I want to do! But I need a .htaccess in the "domainhacks" folder for other reasons, and as soon as I put a .htaccess file in the "domainhacks" folder, it cancels out the "www to non-www" redirect performed by the root .htaccess file. Is there a way to stop this cancellation from happening, or is it just standard protocol?
Thanks so much.