On my small website I pass parameters such as this:

http://world wide web.mysite.com/somepage.php?action=something

But I'd like just do do that:


How do i do that? Are you aware associated with a good, simple assets around? I can not find any because I'm not sure what to search for.

Plenty of thanks ahead of time!


The URL you show will often visit the index file within the root directory (e.g. index.php).

You'll have the ability to catch $_GET["action"] after that with no additional work.


RewriteEngine On

RewriteRule ^([^/]*)$ /somepage.php?action=$1 [L]