Forum
Welcome, Guest
Please Login to access forum.
Htacess redirect doesn't work (1 viewing) 
Go to bottom
TOPIC: Htacess redirect doesn't work
#7748
SOHO Prospecting
Fresh Boarder
Posts: 5
User Offline
Htacess redirect doesn't work Karma: 0  
Hi,

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,
Sandra
 
Logged Logged  
  The administrator has disabled public write access.
#7749
John Dagelmore
Admin
Posts: 3722
User Offline
Re:Htacess redirect doesn't work Karma: 79  
Hi,

i can't know this.

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

Code:

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