Rewriting rules with .htaccess

lordgammon

New Member
Let's say I have two php files in my root directory (acceable from the internet): index.php and some.php. When someone goes to my site at mydomain.net I want them to be actually accessing some.php and any further path presented in the url would be sent to some.php as a GET value. How would I do this with .htaccess?mydomain.net -> some.phpmydomain.net/index.php -> some.php?value=http://stackoverflow.com/questions/3920880/index.phpmydomain.net/somefolder/index.php -> some.php?value=http://stackoverflow.com/questions/3920880/somefolder/index.php
 
Back
Top