Hi, I'm relatively inexperienced with .htaccess redirects, but I've done a few. Our website was recently relocated offsite. The old web server featured user directories that could be reached using the followig format (emphasis on the tilda(~):
Before transferring the domain I tested some redirect rules on the new server to make sure that they would work, and they did. Here is the format I used:
RewriteRule ^~user
(Note:Keep in mind that each user established their own site so not all of the ~users moved to the same so I couldn't just do a general rule for all.)
Once the domain was redirected to the new server, this format worked for a few of them, but most of them returned a 404 error and none of them would redirect. I've been desperately looking for a remedy, as currently there is no effective redirect in place, and no luck so far. Here are some of the other formats I've tried:
RewriteBase /~user
RewriteCond %{ -d
RewriteRule ^(.+[^/])$ $1/ [R]##I think this just adds the trailing slash
###### DID NOT WORK
#RewriteRule ^/~([^/]+)/user$ [R]
###### DID NOT WORK
Any suggestions would be GREATLY appreciated.
Before transferring the domain I tested some redirect rules on the new server to make sure that they would work, and they did. Here is the format I used:
RewriteRule ^~user
(Note:Keep in mind that each user established their own site so not all of the ~users moved to the same so I couldn't just do a general rule for all.)
Once the domain was redirected to the new server, this format worked for a few of them, but most of them returned a 404 error and none of them would redirect. I've been desperately looking for a remedy, as currently there is no effective redirect in place, and no luck so far. Here are some of the other formats I've tried:
RewriteBase /~user
RewriteCond %{ -d
RewriteRule ^(.+[^/])$ $1/ [R]##I think this just adds the trailing slash
###### DID NOT WORK
#RewriteRule ^/~([^/]+)/user$ [R]
###### DID NOT WORK
Any suggestions would be GREATLY appreciated.