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:

http://mysite.com/?action=something

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!

jase

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.

.htaccess

RewriteEngine On

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