Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DirectoryIndex index.html index.php index.htm index.cgi
- RewriteEngine on
- #pagination rewriting
- RewriteRule ^(.*?)/([0-9]+)/([0-9]+)?$ index.php?page=$2&c_id=$3 [L,QSA]
- #business review rewriting
- RewriteRule ^([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/([0-9]+)/([a-zA-Z0-9-_]+)/?$ contents/details.php?b_id=$4&status=$5 [L,QSA]
- #business rewriting
- RewriteRule ^([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/([0-9]+)/?$ contents/details.php?b_id=$4 [L,QSA]
- #claim page rewriting
- RewriteRule ^claim/([0-9]+)/?$ contents/claim.php?b_id=$1 [L,QSA]
- #report page rewriting
- RewriteRule ^report/([0-9]+)/?$ contents/report.php?b_id=$1 [L,QSA]
- #index.php to host
- RewriteCond %{THE_REQUEST} ^.*/index\.php
- RewriteRule ^(.*)index.php$ /$1 [R=301,L]
- #rewrite host to index.php
- RewriteCond %{THE_REQUEST} ^(.*?)$
- RewriteRule ^/?$ index.php [L]
- #main pages rewriting
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME}.php !-f
- RewriteRule ^(.*?)/?$ contents/$1.php
- #Redirect 301 / http://www.star-business-directory.com/contents/about.php
- #category rewriting
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteCond %{REQUEST_FILENAME} -f [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^ - [L]
- RewriteRule ^([_0-9a-zA-Z-]+/)?$ [L]
- RewriteRule . index.php [L]
- </IfModule>
- # ******************* admin *************************
- #admin home
- RewriteRule ^admin/([0-9]+)/?$ admin/index.php [L,QSA]
- ErrorDocument 404 contents/notfound.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement