开发者

Apache rewrite module: how to remove '.php' in the middle of the URL

开发者 https://www.devze.com 2023-01-23 12:00 出处:网络
I would like this address: http://www.example.com/account/?a=b&c=d to be translated internally as http://www.example.com/account.php/?a=b&c=d

I would like this address:

http://www.example.com/account/?a=b&c=d

to be translated internally as

http://www.example.com/account.php/?a=b&c=d

using the rewrite module syntax in the .htaccess file.

Any help, please?

Thanks,

D开发者_如何学Can


RewriteEngine On
RewriteRule ^account/ account.php
0

精彩评论

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