I building a site that has SEO friendly URLs, the URLs on the live site look something like: http://www.somesite.com/seo/friendly/url
I also have a staging server that I am using to test the site. On this server the URLs look something like this : http://127.0.0.1/~somesite/seo/friendly/url
Now, SEO urls work on the live site but fail on the test as the substitution in .htaccess captures the /~somesite substring as a variable as well.
How can I begin substitution from where my index.php lives?
Here is the substitution code I am using now:
RewriteRule ^(([\w\-\/])+)$ index.php?page=$1 [L,QSA]