Sábado, 20 Diciembre 2014 05:51
beggarly

Xmap sitemap as sitemap.xml is not working for joomla 2.5

Report Xmap bugs on this forum.

Re: Xmap sitemap as sitemap.xml is not working for joomla 2.

Postby hmirs » Wed Nov 21, 2012 12:46 pm

The same, is not working but i found something. I put Adds Suffix to URL from Global Configuration to No and is working. This settings remove .html from the end of links but i do not want that.
hmirs
Fresh Boarder
Fresh Boarder
 
Posts: 9
Joined: Tue Nov 20, 2012 6:16 pm

Re: Xmap sitemap as sitemap.xml is not working for joomla 2.

Postby guilleva » Wed Nov 21, 2012 1:34 pm

Hi, thanks for the hint, please try adding "&format=html" to the internal url:


Code: Select all
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&id=1&view=xml&format=html [L]
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: Xmap sitemap as sitemap.xml is not working for joomla 2.

Postby hmirs » Wed Nov 21, 2012 1:52 pm

EXCELLENT ! Problem solved !

Thank you !
hmirs
Fresh Boarder
Fresh Boarder
 
Posts: 9
Joined: Tue Nov 20, 2012 6:16 pm

Re: Xmap sitemap as sitemap.xml is not working for joomla 2.

Postby 01 » Fri Dec 07, 2012 8:07 am

Hi, guilleva!
I've faced the same situation. Have described problem here:
http://forum.joomla.orghttp://joomla.vargas.co.cr/en/forum?task=viewtopic&f=626&t=628485%20Also%20tried%20your%20solution,%20but%20I%20receive%20error%20500%20-%20view%20not%20found.%20Could%20you%20help%20me%20please?%20Thank%20you%20very%20much!
P.S. I updated XMap to latest version. updated rules to:
Code: Select all
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&view=xml&tmpl=component&id=1 [L]

But still no luck
01
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Fri Dec 07, 2012 8:06 am

Re: Xmap sitemap as sitemap.xml is not working for joomla 2.

Postby hmirs » Fri Dec 07, 2012 11:38 am

Hy,
It is not working because you do not use the same link. I try your link and is not working but if use the :
Code: Select all
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&id=1&view=xml&format=html [L]

will be ok !
hmirs
Fresh Boarder
Fresh Boarder
 
Posts: 9
Joined: Tue Nov 20, 2012 6:16 pm

Re: Xmap sitemap as sitemap.xml is not working for joomla 2.

Postby 01 » Fri Dec 07, 2012 11:45 am

Hi!
Thank you very much.. It's my mistake. With you fix everything is working fine.
For those who need multilang support for sitemap use:
Code: Select all
RewriteRule ^(.*)sitemap.xml$ /index.php?option=com_xmap&id=1&view=xml&format=html [L] 
01
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Fri Dec 07, 2012 8:06 am

Re: Xmap sitemap as sitemap.xml is not working for joomla 2.

Postby hmirs » Sun Mar 17, 2013 12:16 pm

Hy,

I am forced to reopen this topic because i try multi-language site-map setup and i received error 500. Please help !

Code: Select all
http://serviciiweb.hmirs.info/en/index.php?option=com_xmap&id=3&view=xml - ok
http://serviciiweb.hmirs.info/en/sitemap.xml - error 500

http://serviciiweb.hmirs.info/ro/index.php?option=com_xmap&id=2&view=xml - ok
http://serviciiweb.hmirs.info/ro/sitemap.xml - error 500


.htaccess
Code: Select all
#sitemap.xml from Xmap
#Romanian sitemap
RewriteCond %{REQUEST_URI} ^/ro/sitemap.xml
RewriteRule .* /ro/index.php?option=com_xmap&id=2&view=xml
# English sitemap
RewriteCond %{REQUEST_URI} ^/en/sitemap.xml
RewriteRule .* /en/index.php?option=com_xmap&id=3&view=xml


LE: I check again and i forgot to put in the end
format=html
. Now it is working !
hmirs
Fresh Boarder
Fresh Boarder
 
Posts: 9
Joined: Tue Nov 20, 2012 6:16 pm

Previous

Return to Bugs



Who is online

Users browsing this forum: No registered users and 1 guest

cron