I have been using the following rewrite rule. It just sends back a 404 page when you try and access a page.
After upload to server, the rule is not working. PHPinfo() tells me that the module is installed.
this is code :
Code:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://dommain.com
RewriteCond %{HTTP_REFERER} !^http://www.dommain.com
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.dommain.com/empty.html [L]
DirectoryIndex index.php
RewriteRule ^(.*)\.html$ category.php?categories_name=$1
RewriteRule ^([^/]+)/([^/]+)\.html$ subcategory.php?category_name=$1&subcategory_name=$2
RewriteRule ^(.*)\.html$ products.php?product_name=$1
# RewriteEngine off
Any help apreciated, many thanks, raja reddy.