It should work recursively... i.e. would be automatically applied to all folders accessed as a /sub/ to the root / .
This is a discussion on [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects within the General Discussion forums, part of the vBSEO SEO Plugin category; It should work recursively... i.e. would be automatically applied to all folders accessed as a /sub/ to the root / ...
It should work recursively... i.e. would be automatically applied to all folders accessed as a /sub/ to the root / .
What is the best way to find out why it is not? I don't mind adding the .htacess file to all the folders but I would like to understand why it's not working.
Thanks,
Great!It works now.
IF you have .htaccess file in a subfolder, then parent .htaccess doesn't affect this folder.The root .htacess file is NOT recursive?
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
You are welcome!
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Well, I guess I spoke to soon. I was at work and could not test this thoroughly. Here is what I found.
When in the site ROOT the rewrite works perfectly in all cases. That would be if the url has a trailing slash (/) or a http:// prefix or any combination of the two (without www). Exampleis always rewritten toCode:jeep-cj.com, http://jeep-cj.com, jeep-cj.com/ and http://jeep-cj.com/If going to the forum url without a trailing slash (/)Code:http://www.jeep-cj.com/using IE I get a page not found error (404). If the url HAS a trailing slash (/) with or without the http:// prefix the rewrite works.Code:http://jeep-cj.com/forums or jeep-cj.com/forums
Under Firefox - The above is true (404 - page not found error) EXCEPT the url is rewritten toregardless if the http:// prefix is used or not.Code:http://www.jeep-cj.com/forums/home/jeepcj/public_html/forums
It would seem that without the trailing slash (/) the rewrite does not function in the forum root but does function in the web root.
Thanks for all the help
Please check this: Add www to forum url with no trailing slash
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Wow - that was fast. I searched but did not find that. It worked and now no more 404's. I sure am learning allot!
Thanks for the second time!
it is, but only if the folders below it don't have an htaccess themselves. since you forum folder has one, it basically overrides the root htaccess file.
now, /someotherfolder/ will be effected by root, as it doesn't have an htaccess file in it (presumably... frontpage, etc can screw this up)
try it out.
make a new folder and go to the non-www version of it. it should direct to www.site.com/someotherfolder/
Hello,
if your subdomains are located in a subfolder, try to create .htaccess file in it with one line:
RewriteEngine off
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
You are welcome!
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
I tried using this tutorial but seems like i am missing something
and when i try to go toit goes back to my front page instead of going toCode:http://scorechase.com/gmat/Here is the excerpt from the .htaccessCode:http://www.scorechase.com/gmat/
RewriteCond %{HTTP_HOST} !^www\.scorechase\.com
RewriteRule (.*) http://www.scorechase.com/$1 [R=301,L]
could you please help
Thanks