Sitemap generator mod_rewrite conflict
« on: September 09, 2007, 12:25:58 AM »

I have just changed web hosts, and cannot get the stand alone sitemap generator working. I have tried upgrading old version, and also uploading new version from scratch. I have checked and rechecked permissions - all fine.

Basically, the config file appears to remember old settings - even using the new updated version! Also, I cannot save the config file, or make any changes to it.

It appears to have something to do with the contents of my .htaccess file (important bits below):

Code: [Select]
Options +FollowSymLinks -Multiviews
RewriteEngine On

RewriteCond %{HTTP_HOST} ^www\.(domain\.com)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

php_value magic_quotes_gpc off

# Remove index.php.
RewriteCond %{THE_REQUEST} ^[^\ ]+\ (/.*/)index\.php\  [NC]
RewriteRule ^(.*/)?index\.php$ %1 [R=301,L]

# Remove .php; use THE_REQUEST to prevent infinite loops.
RewriteCond %{THE_REQUEST} ^[^\ ]+\ (/.+)\.php\  [NC]
RewriteRule ^.+\.php$ %1/ [R=301,L]

# Add slash if it's not a file and there is a PHP file.
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME}.php -f
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]

# Add .php to access file, but don't redirect.
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^(.+)/$ /$1.php [QSA,L]

Can you please suggest some code I can add to a .htaccess file within the generator folder to overcome this?
Thnx  :(
« Last Edit: September 09, 2007, 12:45:43 AM by sarah »
Re: Sitemap generator mod_rewrite conflict
« Reply #1 on: September 10, 2007, 01:26:46 AM »
I added:

Code: [Select]
RewriteEngine Off
to an .htaccess file in the generator folder which appears to do the trick.

HTH others in this position.  :)
Re: Sitemap generator mod_rewrite conflict
« Reply #2 on: September 10, 2007, 09:33:20 PM »
Great, thank you for update! :)
Oleg Ignatiuk
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.