Jueves, 24 Abril 2014 18:57
beggarly

Problem with RewriteRule and Xmap

An open forum for opinions and general questions

Problem with RewriteRule and Xmap

Postby BastianW » Thu May 17, 2012 12:46 pm

Hello,

I´m using Joomla 2.5.4 (with xMap 2.2.1) and wish to use a RewriteRule to rewrite the Xmap URL to something like sitemap.xml (for SEO reasons along with security reasons ... a boot musn´t see which components I use).

My Joomla installation has 2 languages DE and EN ... so my startpoint is:
www.mydomain.tld/en/home.html
or
www.mydomain.tld/de/home.html

I added the following to my .htaccess

Code: Select all
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /en/?option=com_xmap&view=xml&tmpl=component&id=1 [L]
RewriteCond %{REQUEST_URI} ^/en/sitemap.xml
RewriteRule .* /en/?option=com_xmap&view=xml&tmpl=component&id=1 [L]
RewriteCond %{REQUEST_URI} ^/de/sitemap.xml
RewriteRule .* /en/?option=com_xmap&view=xml&tmpl=component&id=1 [L]


But when I try to access
www.mydomain.tld/en/sitemap.xml
I got the error message:
Code: Select all
500 - View not found [name, type, prefix]: xml, xml, xmapView


I checked some links and I get the same error if I try to use the URL:
www.mydomain.tld/en/index.php?option=com_xmap
BUT ... (and thats the strange part) if I remove the index.php from the URL above it works:
www.mydomain.tld/en/?option=com_xmap
Then I got a website with some content from the component


I can also reproduce the issue on the vargas.co.cr. If you visit:
http://joomla.vargas.co.cr/en/index.php?option=com_xmap
you get a error message. But if you try:
http://joomla.vargas.co.cr/en/?option=com_xmap
It works...


So could that be a issue with xMap?

Note:
It looks like similar to this posting here:
http://joomla.vargas.co.cr/en/forum?task=viewtopic&f=5&t=3445
but it wasn´t solved with the content there.
Last edited by BastianW on Fri May 18, 2012 10:45 am, edited 1 time in total.
BastianW
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Thu May 17, 2012 12:37 pm

Re: Problem with RewriteRule and Xmap

Postby BastianW » Fri May 18, 2012 10:33 am

As additional info:

I also tried the "official" rewrite rules mentioned here:
http://joomla.vargas.co.cr/en/documentation/34-xmap-2/how-to/108-xmap-sitemap-as-sitemapxml

thats also not working correctly. I got the same error message as mentioned above.
BastianW
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Thu May 17, 2012 12:37 pm

Re: Problem with RewriteRule and Xmap

Postby magnusjohanson » Tue Jan 22, 2013 3:14 pm

Hi,

Just a short question: Did you ever solve this case? I am experiencing the same (500, view not found) on J2.5.

Best regards, Magnus
magnusjohanson
Fresh Boarder
Fresh Boarder
 
Posts: 3
Joined: Tue Jan 22, 2013 3:12 pm


Return to General



Who is online

Users browsing this forum: No registered users and 6 guests

cron