Forum Moderators: phranque
I have a virtual host on my server that has some regex stuff in the .htaccess file. I'd like to move it into the httpd.conf file so that users cannot delete/modify it.
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule resources\/index\.html$ /resources/index\.php?sm=1
RewriteRule resources\/$ /resources/index\.php?sm=1
RewriteRule resources\/info\/(.*)\.html$ /resources/index\.php?kw=$1
RewriteRule resources\/index(.*)\.html$ /resources/index\.php?index=$1
Also, for security I would like to place the /resource/ directory out of their document root (or make it not accessible (read/write/exe) - what is the best way to do this?
Thanks!
Erik
Also, since the host is a virtual host on my server, I don't want this rewrite affecting every account, just that one. So the path is /home/user/public_html/... (if that makes a difference)
Thanks! Erik