Support

Admin Tools

#14787 .htaccess rewrite cond rule for xmap users

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Monday, 28 January 2013 14:15 CST

user28652

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.8
PHP version: 5.3.x
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: 2.4.4

Greetings Nicholas,

Not a question, but may be of help to others: I added xmap to my site and, in the process of troubleshooting the installation, came across these two lines that allow http://www.yoursite.com/sitemap.xml to work:

RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&id=1&view=xml

Using Admin Tools' .htaccess maker, I added these as, "Custom .htaccess rules at the bottom of the file".

I also finally figured out that xmap installs with all the menus de-selected in the sitemap admin control panel. Until you put checks in the boxes next to the menus to be included in your sitemap, the sitemap will have no URLs in it. :-) Of course, I initially thought that Admin Tools might be blocking xmap's functionality. It was not. Other than adding the two lines (above) to my .htaccess file, my fully configured Admin Tools Pro (with fully operational WAF) is 100% compatible with xmap, with no other changes required.

Best, -- Dave

nicholas
Akeeba Staff
Manager

Why do it the hard way? In .htaccess Maker find the "Allow direct access to these files" section and add:

sitemap.xml

at the end of the list, then regenerate the .htaccess. This will allow search engines to access the sitemap.xml file written by XMap to your site's root. If, however, XMap is unable to write this file to your site's root then your trick is the only workaround, indeed.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user28652

Thank you, Nicholas. I'm all about keeping things simple, and will give that a try.

Regards, -- Dave

nicholas
Akeeba Staff
Manager

You're welcome, Dave!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!