I have this path in localhost (localhost/ams/forms/login.php
). I want to redirect for clean url (localhost/ams/forms/login/
) when I type localhost/ams.
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [QSA,L]
Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html