Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 11:21:45 AM

Pages: [1]   Go Down
  Print  
Author Topic: .htaccess close but not working perfectly  (Read 689 times)
stalliondan
Space Explorer
***
Offline Offline

Posts: 7


« on: October 06, 2008, 11:45:00 AM »

Greetings everyone.  I have a subdomain www.mydomain.com.  The htaccess file in that directory forwards the requests to www.mydomain.com/home/.  All is great with that, but what I also need it if someone enters the url without the ending "/" (ex: www.mydomain.com/home) for it still to be forwarded to the right address.  Below is what I have in my htaccess file.  Any help would be greatly appreciated.

RewriteEngine On
Options +FollowSymlinks

RewriteCond %{HTTP_HOST} mydomain.com$
RewriteCond %{REQUEST_URI} !home/
RewriteRule ^(.*)$ home/$1
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: