XML Sitemaps Generator

Author Topic: .htaccess problem  (Read 8727 times)

orders16

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
.htaccess problem
« on: May 25, 2010, 12:19:47 AM »
I have a site which uses a CMS. It generates its own sitemap.

Here is part of the .htaccess file which is in the site's root:
Code: [external links are visible to admins only]
RewriteRule ^sitemap\.xml$ index.php [L]
I do not want to use Sitemap Generator to generate a sitemap for the part that is handled by the CMS. I only want to generate a sitemap for '[external links are visible to admins only]' which is seperate from the CMS but still in the same root. My generator folder is in the 'store' directory.

I added the following .htacess file to 'store' directory...
Code: [external links are visible to admins only]
<IfModule mod_rewrite.c>
RewriteEngine Off
ErrorDocument 404 ../../index.php
</IfModule>
... but the generator fails. I am able to access the config set up of Sitemap Generator and set it up but I get the following PHP errors when I try to crawl:
Code: [external links are visible to admins only]
[Mon May 24 19:48:23 2010] [error] [client 192.168.0.1] PHP Warning:  Invalid argument supplied for foreach() in C:\\www\\vhosts\\_static\\mysite.com\\generator\\pages\\class.html-creator.inc.php(2) : eval()'d code on line 89
[Mon May 24 19:50:08 2010] [error] [client 192.168.0.1] File does not exist: C:/www/vhosts/_static/mysite.com/generator/data/urllist.txt
[Mon May 24 19:50:11 2010] [error] [client 192.168.0.1] File does not exist: C:/www/vhosts/_static/mysite.com/generator/data/urllist.txt
[Mon May 24 19:50:36 2010] [error] [client 192.168.0.1] PHP Warning:  Invalid argument supplied for foreach() in C:\\www\\vhosts\\_static\\mysite.com\\generator\\pages\\class.html-creator.inc.php(2) : eval()'d code on line 89
[Mon May 24 19:52:27 2010] [error] [client 192.168.0.1] PHP Warning:  ksort() expects parameter 1 to be array, null given in C:\\www\\vhosts\\_static\\mysite.com\\generator\\pages\\page-analyze.inc.php(2) : eval()'d code on line 55
[Mon May 24 19:52:27 2010] [error] [client 192.168.0.1] PHP Warning:  Invalid argument supplied for foreach() in C:\\www\\vhosts\\_static\\mysite.com\\generator\\pages\\page-analyze.inc.php(2) : eval()'d code on line 57
[Mon May 24 19:52:46 2010] [error] [client 192.168.0.1] PHP Warning:  ksort() expects parameter 1 to be array, null given in C:\\www\\vhosts\\_static\\mysite.com\\generator\\pages\\page-analyze.inc.php(2) : eval()'d code on line 55
[Mon May 24 19:52:46 2010] [error] [client 192.168.0.1] PHP Warning:  Invalid argument supplied for foreach() in C:\\www\\vhosts\\_static\\mysite.com\\generator\\pages\\page-analyze.inc.php(2) : eval()'d code on line 57
[Mon May 24 19:54:08 2010] [error] [client 192.168.0.1] PHP Warning:  Invalid argument supplied for foreach() in C:\\www\\vhosts\\_static\\mysite.com\\generator\\pages\\class.html-creator.inc.php(2) : eval()'d code on line 89
[Mon May 24 20:02:23 2010] [alert] [client 192.168.0.1] C:/www/vhosts/_static/mysite.com/.htaccess: Invalid command '//RewriteRule', perhaps misspelled or defined by a module not included in the server configuration

I don't know how to fix. Can someone help? I tested on a different site (same server) and it works.
« Last Edit: May 25, 2010, 12:27:12 AM by orders16 »

orders16

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: .htaccess problem
« Reply #1 on: May 25, 2010, 02:10:58 AM »
I figured it out.

I thought it was an issue with modrewrite but it turned out to be simple.

My entire store uses SSL. I just changed the URL from:

[external links are visible to admins only]

to

[external links are visible to admins only]

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: .htaccess problem
« Reply #2 on: May 25, 2010, 08:55:53 PM »
Hello,

I'm glad the issue is sorted now!
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