Sunday, March 5, 2017

htaccess Basics

ErrorDocument 404 http://fccollc.com/only-detail/7/index.php
ErrorDocument 500 http://fccollc.com/only-detail/7/index.php
IndexIgnore *      # prevent directory file liting in all folders


RewriteEngine on

RewriteBase /


#Options +FollowSymlinks
#RewriteEngine off


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#######Remove Php Extension#############
RewriteCond %{REQUEST_FILENAME}\.php -f

RewriteRule ^Product/(.*)/(.*) product-detail.php?product_name=$1&id=$2
#RewriteRule Merchantdetail/(.*)/(.*)/(.*) merchantdetail.php?merchant_name=$1&area_name=$2&merchant_type=$3

RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ http://fccollc.com/fokkat/2/admin/$1/ [R=301,L]

RewriteRule ^(.*)$ index.php?/$1 [L]

RewriteCond %{HTTP_HOST} ^isess.in [NC]
RewriteRule ^(.*)$ http://www.isess.in/$1 [L,R=301]

No comments:

Post a Comment