开发者

Redirect a page without extension using htaccess

开发者 https://www.devze.com 2023-02-16 09:28 出处:网络
I need re开发者_开发技巧direct the page like this: http://www.example.com/index.php To this: http://www.example.com/home

I need re开发者_开发技巧direct the page like this:

http://www.example.com/index.php

To this:

http://www.example.com/home

Is this possible using htaccess? And if the answer is yes, how?


Yes, this is possible. Put the following code in your .htaccess file:

RewriteEngine on

RewriteRule ^home$ index.php


Have a look at this website. It is a good reference.

0

精彩评论

暂无评论...
验证码 换一张
取 消