Home

Stefano Mallozzi Professional web developmentStefano Mallozzi Professional web development

Condividi contenuti
  • About me
  • Bookmark
  • Tips and tricks
  • Tutorials
  • Contact me
  • Feed aggregator
Home

Languages

  • Italiano
  • English

Contact me

Links

Tag cloud

connection drupal i18n ics images internet lan network node images photo php seo
More tags

Photo galleries

  • Pictures of Gaeta

How to redirect a dynamic sitemap url to a static sitemap.xml url

Mon, 19/01/2009 - 19:23 — stefano

If your sitemap url is available on a static url like /sitemap.xml, and you want to add a redirect from a dynamic url like /sitemap, just open the .htaccess file and add the following code:

# redirect sitemap
RewriteRule ^(sitemap)$ sitemap.xml [L]

Tags:
  • Tips and tricks
  • htaccess
  • seo
  • sitemap
»
  • Italiano
Syndicate content

© Stefano Mallozzi
P.IVA 02155580596
Valid XHTML 1.0 Strict Valid CSS Valid RSS
Powered by Drupal Powered by Apache Powered by MySQL Powered by PHP