更改"的index.php"中的地址 [英] Changing "index.php" Within The Address
本文介绍了更改"的index.php"中的地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个网站,我想改变我的网页 home.php
进入页面家居
I am developing a website in which i want to change my page home.php
into page home
我想这的.htaccess
code
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php page=/$1 [L,QSA]
请帮我。
推荐答案
只是这样的:
RewriteEngine On
RewriteRule ^(.*)$ $1.php [L,QSA]
这篇关于更改"的index.php"中的地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文