Joomap sitemap.xml

Wednesday, 28 May 2008

Here's a trick to redirect your ugly Joomap Google XML sitemap URL to a more "standard" URL. The benefit is a nicer URL, which can be succesfully submitted or even autodiscovered without submission by all search providers that support the Sitemaps protocol. This trick  mimics a sitemap.xml file placed in site root, as the sitemaps protocol requires.

The trick requires apache mod_rewrite and local .htaccess support. (Requirements are already met if you're succesfully using a 3rd party SEF extension for Joomla, such as Artio JoomSef, sh404SEF, sefAdvance, etc.)

This was tested with Joomap 2.0.5. It  also works with Artio JoomSef installed. All you have to do is paste the following 3 lines in your .htaccess file, just after the line that reads  'RewriteEngine On'

# redirect joomap by TMJ
RewriteCond   %{REQUEST_URI} ^(/sitemap.xml)$   
RewriteRule  (.*) index.php?option=com_joomap&view=google [L]

On the 3rd line of code you'll notice the "destination" URL

'index.php?option=com_joomap&view=google'

 If you're also using a SEF extension that enforces  non-sef urls redirects to sef URLs, please change this URL to the final URL for the sitemap, like

'option/com_joomap/view.html'

Please note there is no leading slash.

 

 



Give us some social love (it really works now)!

Reddit! Del.icio.us! StumbleUpon! Yahoo! Swik!



Be first to comment this article
RSS comments

Write Comment
  • Please keep the topic of messages relevant to the subject of the article.
  • Please don't use comments to plug your web site. Links are rel='nofollow'-ed
  • Please refresh the page if you're having trouble with the security image code
Name:
E-mail
Homepage
Title:
Comment:

:) :grin ;) 8) :p
:roll :eek :upset :zzz :sigh
:? :cry :( :x
Code:* Code

Last Updated ( Thursday, 18 September 2008 )
 
468x60b

Newsletter

Subscribe to TeachMeJoomla's newsletter
Name:
Email:


Auto tags

Joomap

joomap xml

joomap 2.05

joomap sh404sef

sh404sef joomap

joomap tutorial

Joomap 2.0.5

joomap and sh404sef

joomap htaccess

instalar joomap

index.php?option=com_joomap&view=google

joomap xml google

joomap 2.0

como instalar joomap

teachmejoomla