Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 06, 2008, 09:45:40 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Redirect  (Read 215 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: 6741



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.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


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