Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 15, 2008, 10:05:16 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Redirect  (Read 234 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
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 8035



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

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM