flaming Posted March 9, 2011 Share Posted March 9, 2011 Hi, I have just moved my whmcs installation from http://my.domain.com/clients'>http://my.domain.com/clients to http://my.domain.com I would be grateful if someone could advise / guide me to be able to redirect all user request to the old urls to the new, is there any way of putting a .htaccess file and get it to strip out the /clients/ part of a URL request ? Thanks Flaming 0 Quote Link to comment Share on other sites More sharing options...
bear Posted March 10, 2011 Share Posted March 10, 2011 Mod rewrite can do that. This is untested, but should get you started: Options +FollowSymLinks RewriteEngine On RewriteRule ^/?old_directory/([a-z/.]+)$ new_directory/$1 [R=301,L] 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.