I have a url like:
http://exploreinfo/controller/register.php?key=hjgsaf1
where I want the url like:
http://exploreinfo/controller/register/?key=hjgsaf1
how to remove php with the above format using .htaccess
in php
I have a url like:
http://exploreinfo/controller/register.php?key=hjgsaf1
where I want the url like:
http://exploreinfo/controller/register/?key=hjgsaf1
how to remove php with the above format using .htaccess
in php
create a .htaccess file or use apache rewrite: http://httpd.apache.org/docs/current/mod/mod_rewrite.html
The rule is :
RewriteEngine On
RewriteRule ^register/$ register.php [QSA]