J!Extensions Store™
Welcome, Guest
Please Login to access forum.
Htacess redirect doesn't work (1 viewing) 
Go to bottom
TOPIC: Htacess redirect doesn't work
SOHO Prospecting
Fresh Boarder
Posts: 5
User Offline
Htacess redirect doesn't work Karma: 0  

I need to redirect my xml sitemap from http://www.venturacountygrowsbusiness.com/index.php?option=com_jmap&view=sitemap&format=xml
to http://www.venturacountygrowsbusiness.com/sitemap.xml

I follow documentation and added this line in my htaccess file:

RewriteEngine On
RewriteRule ^sitemap\.xml$ /index.php?option=com_jmap&view=sitemap&format=xml [L]

but when i go to to http://www.venturacountygrowsbusiness.com/sitemap.xml it show me 404 page.
What I do wrong?

Please advise,
Logged Logged  
  The administrator has disabled public write access.
John Dagelmore
Posts: 3695
User Offline
Re:Htacess redirect doesn't work Karma: 79  

i can't know this.

The correct rule for an htaccess rewriting (and not redirect as you said) is:


RewriteRule ^sitemap\.xml$ index.php?option=com_jmap&view=sitemap&format=xml [L]
without the slash as you reported. Other than this try to contact your hosting provider to ensure that your htaccess can work normally. Notice that such a rewriting is simply an alias and is not required. Best regards, John
Logged Logged  
  The administrator has disabled public write access.
Go to top