Yet Another htaccess question

I’m moving a site to a new host. The htaccess file on the old host was working great for friendly urls like mysite.com/contact

RewriteRule ^/([a-zA-Z0-9_-]+)$ index.php?var1=$1

However, on the new host, I have a temporary address to browse, which I think is my problem. I’ve got an address like: http://00.00.00.000/~mysite/ until the actual domain is transferred…

first line of my htaccess: DirectoryIndex index.php
This is working correctly, so I know the htaccess file is being found and at least functioning…

So my index page is http://00.00.00.000/~mysite/index.php
Friendly urls are currently like: http://00.00.00.000/~mysite/contact

I’ve tried the unaltered rule as the original and a number of other combinations. Can’t get it to work.
File (not working) as it sits currently is:

DirectoryIndex index.php
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^/~mysite/([a-zA-Z0-9_-]+)$ index.php?var1=$1

Suggestions?

I would try:

[code]RewriteEngine On

RewriteBase /~mysite/

RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?var1=$1
[/code]

Sponsor our Newsletter | Privacy Policy | Terms of Service