.htaccess problem
« on: May 25, 2010, 01: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: [Select]
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 forum administrators 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: [Select]
<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: [Select]
[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, 01:27:12 AM by orders16 »
Re: .htaccess problem
« Reply #1 on: May 25, 2010, 03: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 forum administrators only ]

to

[ External links are visible to forum administrators only ]