I have a URL that will be something like example.com/index.php?p=test so that the PHP will load the test variable using $_GET['p']. The URL can already be simplified to example.com?p=test; however, I wish to simplify this in my .htaccess to site.com/test. How would i go about doing this?
I have a URL that will be something like example.com/index.php?p=test so that the PHP
Share
Place the following in your
.htaccessfile:You can then access
whateverfromexample.com/whateverlike the following: