Dan
Dan

Reputation: 16226

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

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,
Dan

Upvotes: 0

Views: 168

Answers (1)

bradym
bradym

Reputation: 4961

RewriteEngine On
RewriteRule ^account/ account.php

Upvotes: 2

Related Questions