Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • URL rewritting in PHP with .htaccess

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 311
    Comment on it

    Hello Guys,

    If you are looking to change your website URLs on SEO friendly mode URL rewriting with .htaccess file is a good practice to do same. Suppose you want to change your website URL like htttp://www.abc.com/prodDetail.php?prodID=15&catID=20 to http://www.abc.com/prodDetail/product/15/category/20

    Please open .htaccess file on the root of your server and add

    RewriteEngine On
    RewriteBase /whalersupply/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^prodDetail/product/([0-9]+)/category/([0-9]+)$ prodDetail.php?prodID=$1&catID=$2 [L] 
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: