I have the following in my .htacces file so that users can have the address http://our.homewithgod.com/account_name/. The sub domain our actually points to mansions_our which is in the main directory.
Everything works fine as long as they put a / at he end of the url. But if they type in http://our.homewithgod.com/account_name without the / at the end, the address in the browser address bar changes to http://www.homewithgod.com/mansions_our/account_name/.
What do I need to add to the code to make it add the / if they do not enter it, or to keep the address http://our.homewithgod.com/account_name/?
RewriteCond %{HTTP_HOST} [^.]*our\.homewithgod.com$
RewriteRule ^(.*)$ /mansions_our/$1
Jimmy Crow
http://www.homewithgod.com/
Everything works fine as long as they put a / at he end of the url. But if they type in http://our.homewithgod.com/account_name without the / at the end, the address in the browser address bar changes to http://www.homewithgod.com/mansions_our/account_name/.
What do I need to add to the code to make it add the / if they do not enter it, or to keep the address http://our.homewithgod.com/account_name/?
RewriteCond %{HTTP_HOST} [^.]*our\.homewithgod.com$
RewriteRule ^(.*)$ /mansions_our/$1
Jimmy Crow
http://www.homewithgod.com/