XML Sitemaps Generator

Author Topic: Sitemap generator mod_rewrite conflict  (Read 20525 times)

sarah

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Sitemap generator mod_rewrite conflict
« on: September 08, 2007, 11:25:58 PM »
Hi

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: [external links are visible to admins only]
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 08, 2007, 11:45:43 PM by sarah »

sarah

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: Sitemap generator mod_rewrite conflict
« Reply #1 on: September 10, 2007, 12:26:46 AM »
I added:

Code: [external links are visible to admins only]
RewriteEngine Off
to an .htaccess file in the generator folder which appears to do the trick.

HTH others in this position.  :)

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Sitemap generator mod_rewrite conflict
« Reply #2 on: September 10, 2007, 08:33:20 PM »
Great, thank you for update! :)
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

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

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2