htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Pleaase help me mod rewrite rule
PostPosted: 23 Jun 2008 08:42 
Offline

Joined: 20 Jun 2008 13:01
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB