- Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^includes[^\.]/?(.*)$ - [F]
RewriteRule ^template\.php$ - [F]
RewriteRule ^shop/artikelnr/([0-9]+)/?$ shop_show_prod.php?art=$1 [NC,L]
RewriteRule ^shop/produkt/([0-9]+)/?$ shop_show_prod.php?prod=$1 [NC,L]
RewriteRule ^shop/kategori/([0-9]+)/?$ shop_show_cat.php?cat=$1 [NC,L]
RewriteRule ^vet/aktuell-information/([0-9]+)/?$ vet_aktuell-information.php?id=$1 [NC,L]
RewriteRule ^om-webbplatsen/?$ ovrigt_om-webbplatsen.php [NC,L]
RewriteRule ^(shop|webbvet|vet)/?$ $1_index.php [NC,L]
RewriteRule ^(.*)/$ $1
RewriteRule ^(shop|webbvet|vet)/([A-Za-z0-9-_]+)$ $1_$2\.php [NC,L]
I want to restrict access to the original files, named shop_*.php, vet_*.php and webbvet_*.php, ovrigt_*.php.
But i still want to allow access in css/ etc.
How do I do that?
Appreciating all the help I can get. Thx!
/Johan