Home » , » How To Use htaccess file rewrite url

How To Use htaccess file rewrite url

In order rewrite your URL of your web site you may use .htaccess file that make the apache module (mod_rewrite) will allow you when requests into web server based on a regular expression parser.
The more strong tricks in the .htaccess hacker can allow you rewrite URLs. That are enables us to do some mighty manipulations on our links.
mod_rewrite operates on the full URL path, including the path-info section. A rewrite rule can be invoked in httpd.conf or in .htaccess
How to use it Please following me ...
At first you create a file ".htaccess" and pass the following code after that save it into your home directory of your website.

# Don't show directory listings for URLs which map to a directory.
##Options All -Indexes

# Follow symbolic links in this directory.
##Options +FollowSymLinks

# Customized error messages.
ErrorDocument 404 /index.php

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  # Rewrite current-style URLs of the form 'index.php?url=x'.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]

Share this acticle :


Post a Comment


Proudly powered by Blogger