I just moved to hostgator, my problem is accessing my sitemaps from the root directory using .htaccess.
In my root directory .htaccess I have:
In my /forum directory I have:Code:RewriteEngine On Options +FollowSymLinks RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
What happens is that the URL:Code:RewriteEngine On Options +FollowSymLinks RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron) RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA]
http://www.mysite.com/sitemap_index.xml.gz
does NOT work, its calling vbseo.php and giving me a Page not found 404 error. I dumped the $_GET array below to see and it appears to be trying to call the vbseo_getsitemap.php script.
However, http://www.mysite.com/forum/sitemap_index.xml.gz, does work.Code:Page not foundArray ( [sitemap] => sitemap_1.xml.gz ) [REDIRECT_STATUS] => 200 [REQUEST_URI] => /sitemap_index.xml.gz [SCRIPT_FILENAME] => /home/me/public_html/mysite/forum/vbseo.php [SCRIPT_NAME] => /forum/vbseo_sitemap/vbseo_getsitemap.php
If I stick some debug in vbseo_functions_url.php I am able to see the SERVER info above; which leads me to believe that possibly the request for vbseo_getsitemap.php is redirecting to vbseo.php.


LinkBack URL
About LinkBacks





Reply With Quote