0

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

Rizier123
  • 56,111
  • 16
  • 85
  • 130
  • [how to remove php extensions with htaccess](http://alexcican.com/post/how-to-remove-php-html-htm-extensions-with-htaccess/) – Simone Nigro Jan 26 '15 at 20:03
  • A quick search on [google](https://www.google.ro/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=htaccess%20remove%20.php) returns lots of articles on how to do that? – Bogdan Jan 26 '15 at 20:04

1 Answers1

0

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]
harrrrrrry
  • 7,212
  • 1
  • 17
  • 26