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:38:15 AM

Pages: [1]   Go Down
  Print  
Author Topic: Redirect  (Read 676 times)
kathleenk
Newbie
*
Offline Offline

Posts: 1


« on: January 24, 2008, 08:31:40 AM »

Greetings,
How can I get this http://ourwebsite.com/here to automatically bring up this http://ourwebsite.com/here/ (with the slash)?  The first link does not bring up the default index page in the directory, instead we get a page not found.
I was told I had to create and upload a redirect to append the slash.
Anyone have any ideas?
Logged
Mitch
Berserker Poster
*****
Offline Offline

Posts: 12837


WWW
« Reply #1 on: January 24, 2008, 08:34:12 AM »

Try adding this to your .htaccess files (changing the domain to reflect your own):

Code:
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*[^/])$ http://www.example.com/$1/ [R=301,L]

Hope that helps!  Smiling
Logged

New to Web Site Hosting? Check Out the Lunarpages Blog Hosting Guide!


Follow us @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
Pages: [1]   Go Up
  Print  
 
Jump to: