Rewrites for Apache w/friendly urls
------------------------------------------------------------------------

There is optional functionality for the sitemap.
You can have the sitemap generate and manage the robots.txt file for you. If you do so, you need to add a special set of rewrites
to your XenForo installation so we can "capture" the robots.txt file and redirect that for the add-on to generate

This assumes you already have "friendly Urls". If so, you will have an .htaccess file that looks like this:

	<IfModule mod_rewrite.c>
		RewriteEngine On

		#	If you are having problems with the rewrite rules, remove the "#" from the
		#	line that begins "RewriteBase" below. You will also have to change the path
		#	of the rewrite to reflect the path to your XenForo installation.
		# RewriteBase /

		#	This line may be needed to enable WebDAV editing with PHP as a CGI.
		#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

		RewriteCond %{REQUEST_FILENAME} -f [OR]
		RewriteCond %{REQUEST_FILENAME} -l [OR]
		RewriteCond %{REQUEST_FILENAME} -d
		RewriteRule ^.*$ - [NC,L]
		RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
		RewriteRule ^.*$ index.php [NC,L]
	</IfModule>

You need to do a couple of things
1) Remove robots.txt from the rules and
2) Add a custom rewrite to robots.txt

End result will look like this

	<IfModule mod_rewrite.c>
		RewriteEngine On

		#	If you are having problems with the rewrite rules, remove the "#" from the
		#	line that begins "RewriteBase" below. You will also have to change the path
		#	of the rewrite to reflect the path to your XenForo installation.
		# RewriteBase /

		#	This line may be needed to enable WebDAV editing with PHP as a CGI.
		#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

		RewriteCond %{REQUEST_FILENAME} -f [OR]
		RewriteCond %{REQUEST_FILENAME} -l [OR]
		RewriteCond %{REQUEST_FILENAME} -d
		RewriteRule ^.*$ - [NC,L]
		RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml) - [NC,L]
		RewriteRule (robots\.txt)$ robots.php [NC,L]
		RewriteRule ^.*$ index.php [NC,L]
	</IfModule>




