J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
.htaccess changes per docs (1 viewing) 
Go to bottom
TOPIC: .htaccess changes per docs
#434
Bill Slaughter
Fresh Boarder
Posts: 8
User Offline
.htaccess changes per docs Karma: 0  
When I add this:
##### JSitemap Rules -- BEGIN
RewriteRule ^sitemap\.xml$index.php?option=com_jmap&view=sitemap&format=xml[L]
RewriteRule ^sitemap\.images$index.php?option=com_jmap&view=sitemap&format=images[L]
##### -- END

to my .htacces file (at the end) my site no longer works. It returns a 500 error.

Have I done something wrong?

Thanks,
Bill S.
 
Logged Logged  
  The administrator has disabled public write access.
#435
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:.htaccess changes per docs Karma: 79  
Hi Bill,

the default syntax to rewrite sitemap.xml dummy file is this:
Code:

RewriteRule ^sitemap\.xml$ index.php?option=com_jmap&view=sitemap&format=xml [L]
Code:

RewriteRule ^sitemap\.images$ index.php?option=com_jmap&view=sitemap&format=images [L]
It normally works without issues, ensure you respect the exact syntax and spaces. The code you posted seems having not spaces after $ sign and xml suffix:
Code:

RewriteRule ^sitemap\.xml$index.php?option=com_jmap&view=sitemap&format=xml[L]
Best regards John
 
Logged Logged  
  The administrator has disabled public write access.
#436
Bill Slaughter
Fresh Boarder
Posts: 8
User Offline
Re:.htaccess changes per docs Karma: 0  
Thanks John. That was the issue.

Best Regards,
Bill S.
 
Logged Logged  
  The administrator has disabled public write access.
#437
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:.htaccess changes per docs Karma: 79  
 
Logged Logged  
  The administrator has disabled public write access.
Go to top