rewrite requests htaccess 1

rewrite requests htaccess

RewriteEngine On
RewriteRule  index.php  home.php

Here is what the above code is Doing:
1. It’s telling the server to turn on the rewrite engine.
2. It’s telling the server to rewrite the URL index.php to home.php.

Now, when you visit http://www.example.com/index.php, the server will actually serve up the contents of http://www.example.com/home.php.

Similar Posts