Search code examples
php.htaccessmod-rewrite

Mod_rewrite rule for /login to login.php


Somebody knows a rule which transforms http://domain/login to http://domain/login.php? I want it specifically so I can assign also http://domain/loginplease to http://domain/login.php and also http://domain/login to http://domain/login1.php.


Solution

  • RewriteRule ^/login$ /login.php [L]

    What did you try? This is hardly a programming problem.