Pretty Urls not working for sitemap.xml
Permalink Browser Info Environment
Hi
For some reason when ever I try to look at the sitemap, even with no sitemap.xml in the root folder and pretty urls turned on, I can't access it without index.php in the url address. I just get a no page found error page instead, any ideas what the cause would be?
Many Thanks
TomH
For some reason when ever I try to look at the sitemap, even with no sitemap.xml in the root folder and pretty urls turned on, I can't access it without index.php in the url address. I just get a no page found error page instead, any ideas what the cause would be?
Many Thanks
TomH
Type: | |
---|---|
Status: | In Progress |
Can you post the full content of your .htaccess file here?
Here is the .htaccess, the only rewrite rules are the ones from pretty urls
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
#Gzip
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>
#End Gzip
# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 1 week"
</IfModule>
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
#Gzip
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>
#End Gzip
# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 1 week"
</IfModule>
Hi,
That's really strange. I don't see anything different from the normal in your .htaccess. I also tested with the same setup that in your environment configuration (5.6.3.1) and also added the pasted .htaccess. The sitemap.xml displays fine for me under a mapped domain and also under the main domain.
This might be some issue on your server or in its settings. Can you post a link to the domain where you don't see the sitemap.xml?
Best,
Antti / Mainio
That's really strange. I don't see anything different from the normal in your .htaccess. I also tested with the same setup that in your environment configuration (5.6.3.1) and also added the pasted .htaccess. The sitemap.xml displays fine for me under a mapped domain and also under the main domain.
This might be some issue on your server or in its settings. Can you post a link to the domain where you don't see the sitemap.xml?
Best,
Antti / Mainio
Hi,
The link to the website is,http://www.corac.co.uk/sitemap.xml...
It might be a issue with the server, we have had to move it to a different server because our normal server and the domain for the website is hosted by the same service but with different accounts. which prevents us from mapping it to our normal server, i did do a quick check just now and i can see the sitemap on the development server.
http://one.servondesign.com/sitemap.xml...
do you know what sort of settings would prevent this?
Cheers
TomH
The link to the website is,http://www.corac.co.uk/sitemap.xml...
It might be a issue with the server, we have had to move it to a different server because our normal server and the domain for the website is hosted by the same service but with different accounts. which prevents us from mapping it to our normal server, i did do a quick check just now and i can see the sitemap on the development server.
http://one.servondesign.com/sitemap.xml...
do you know what sort of settings would prevent this?
Cheers
TomH
Can you run the following test on the problematic server / domain:
1. Add this script to the root of the concrete5 installation. Let's call it "sitemap_test.php":
2. In your .htaccess file, add these changes prior to the concrete5's internal rewrite rules. Add these straight after the "RewriteBase" line in that file:
3. Request the sitemap URL from the problematic domain.
4. Copy the output and paste it here.
5. Remove those modifications as soon as you are complete with this test.
I might have a hintch what this might relate to but this would give me more information to back that up with.
1. Add this script to the root of the concrete5 installation. Let's call it "sitemap_test.php":
<?php function server_var($key) { if (isset($_SERVER[$key])) { return $_SERVER[$key]; } } echo '<pre>'; var_dump(server_var('PATH_INFO')); var_dump(server_var('REDIRECT_URL')); var_dump(server_var('REQUEST_URI')); var_dump(server_var('ORIG_PATH_INFO')); var_dump(server_var('SCRIPT_NAME')); echo '</pre>';
2. In your .htaccess file, add these changes prior to the concrete5's internal rewrite rules. Add these straight after the "RewriteBase" line in that file:
# SITEMAP TESTING RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule sitemap.xml sitemap_test.php [L] # / SITEMAP TESTING
3. Request the sitemap URL from the problematic domain.
4. Copy the output and paste it here.
5. Remove those modifications as soon as you are complete with this test.
I might have a hintch what this might relate to but this would give me more information to back that up with.
ok did that and got the following
NULL
string(17) "/sitemap_test.php"
string(12) "/sitemap.xml"
string(17) "/sitemap_test.php"
string(17) "/sitemap_test.php"
NULL
string(17) "/sitemap_test.php"
string(12) "/sitemap.xml"
string(17) "/sitemap_test.php"
string(17) "/sitemap_test.php"
Hi Antti / Mainio
we've decided to move back to our old server now, as this is one of a few issues this new server is providing us. The biggest being how slow this new server is. Many Thanks for all the help.
Cheers
TomH
we've decided to move back to our old server now, as this is one of a few issues this new server is providing us. The biggest being how slow this new server is. Many Thanks for all the help.
Cheers
TomH
OK, thanks for the update!
And sorry for the delay, it's not usual for us for it to take this long. Autumn is just super busy time for us.
We still have this on our list to check through. We will investigate this further within a couple of days. I'll come back to you to this thread to report our findings.
And sorry for the delay, it's not usual for us for it to take this long. Autumn is just super busy time for us.
We still have this on our list to check through. We will investigate this further within a couple of days. I'll come back to you to this thread to report our findings.
Did this ever get resolved? I have the exact same problem.
Puttingwww.www.alfinsight.com/index.php/sitemap.xml... returns a sitemap, whereaswww.www.alfinsight.com/sitemap.xml... does not.
cheers
Puttingwww.www.alfinsight.com/index.php/sitemap.xml... returns a sitemap, whereaswww.www.alfinsight.com/sitemap.xml... does not.
cheers
This issue was probably left under the radar as it was resolved.
We have tested that this works properly on our testing environments.
This was probably related to the server configurations.
Best,
Antti / Mainio
We have tested that this works properly on our testing environments.
This was probably related to the server configurations.
Best,
Antti / Mainio
I have the same problem. Should I open a new ticket, or post in here?
@pekka
Can you confirm you are using the 5.6 version of the add-on? I think we might currently have some issue about this in the 5.7 version but we are yet to investigate that further. We should have time to go through the current issue lists in the next couple of weeks.
Antti / Mainio
Can you confirm you are using the 5.6 version of the add-on? I think we might currently have some issue about this in the 5.7 version but we are yet to investigate that further. We should have time to go through the current issue lists in the next couple of weeks.
Antti / Mainio
Yup, 5.6.
Pretty URLs are turned on and work; the sitemap.xml URL seems to be the only one that gets C5's 404 page.
I can work around it by submitting /index.php/sitemap.xml to Google (glad I found this!) so it's no longer totally urgent, but it would be nice to see it fixed.
Pretty URLs are turned on and work; the sitemap.xml URL seems to be the only one that gets C5's 404 page.
I can work around it by submitting /index.php/sitemap.xml to Google (glad I found this!) so it's no longer totally urgent, but it would be nice to see it fixed.