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

Type:
Status: In Progress
servondesign
View Replies:
Mainio replied on at Permalink Reply
Mainio
Can you post the full content of your .htaccess file here?
servondesign replied on at Permalink Reply
servondesign
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>
Mainio replied on at Permalink Reply
Mainio
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
servondesign replied on at Permalink Reply
servondesign
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
Mainio replied on at Permalink Reply
Mainio
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":
<?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.
servondesign replied on at Permalink Reply
servondesign
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"
servondesign replied on at Permalink Reply
servondesign
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
Mainio replied on at Permalink Reply
Mainio
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.
boonier replied on at Permalink Reply
boonier
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
Mainio replied on at Permalink Reply
Mainio
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
pekka replied on at Permalink Reply
pekka
I have the same problem. Should I open a new ticket, or post in here?
Mainio replied on at Permalink Reply
Mainio
@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
pekka replied on at Permalink Reply
pekka
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.

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Formidable (2.0.11), Multiple Domains (1.4.1), Pro Blog (12.4.0), twitter feed (1.0).

# concrete5 Overrides
blocks/imagetrio, blocks/content, blocks/problog_list, blocks/search, blocks/blocklink, blocks/stock, blocks/rnsarchive, blocks/fader, blocks/filelist, blocks/business, blocks/multiple_domains_autonav, blocks/footerlinks, blocks/headbanner, blocks/intro, blocks/faq, blocks/gallery, controllers/cetBlogSearch.php, controllers/aciBlogSearch.php, controllers/httBlogSearch.php, controllers/cBlogSearch.php, helpers/navigation.php, helpers/blogify.php, languages/fi_FI, languages/es_ES, languages/sk_SK, languages/pt_PT, languages/it_IT, languages/sv_SE, languages/ja_JP, languages/da_DK, languages/zh_CN, languages/cs_CZ, languages/nb_NO, languages/nl_NL, languages/fa_IR, languages/es_MX, languages/vi_VN, languages/es_PE, languages/zh_TW, languages/de_DE, languages/tr_TR, languages/ru_RU, languages/el_GR, languages/ro_RO, languages/sl_SI, languages/fr_FR, languages/he_IL, languages/ar, languages/es_AR, libraries/request.php, single_pages/cetBlogSearch.php, single_pages/aciBlogSearch.php, single_pages/httBlogSearch.php, single_pages/cBlogSearch.php, themes/corac

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.32

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, soap, SPL, SQLite, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 32M
sql.safe_mode - Off
upload_max_filesize - 32M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.