Web Hosting Forum | Lunarpages


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



Login with username, password and session length
May 24, 2012, 03:23:31 AM

Pages: [1]   Go Down
  Print  
Author Topic: Redone Site doesn't match previous bookmark  (Read 730 times)
sourc8
Newbie
*
Offline Offline

Posts: 2


« on: April 21, 2010, 01:52:49 PM »

New to posting but been with LP for quite some time.  My question is this:
I had a site at www.edwardkennedystudio.com  it was okay but I got tired of the look, so I abandoned iWeb and went with a template from a company and modified everything I wanted with code.  When the old site was bookmarked by me (and who knows how many others), the site url was: http://edwardkennedystudio.com/Edward_Kennedy_Studio/Welcome.html 
I get an error 404 if I use the bookmark now.  The new site loads great if I type in: www.edwardkennedystudio.com
Ideally, I need the bookmarked url to point to the new index.html  I would hate for people to think the site is totally gone when they click on their bookmark.  I tried looking around for a fix but was unable to come up with something.  Your help would be so appreciated! Thanks!! 
 Happy Happy Joy Joy
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5212



« Reply #1 on: April 21, 2010, 03:18:20 PM »

/.htaccess:
Code:
RewriteEngine On
RewriteCond  %{REQUEST_URI}  ^/Edward_Kennedy_Studio/Welcome.html  [NC]
RewriteRule  .  /index.html  [R=301,L]
This assumes index.html is your home page -- could be index.htm or index.php.

Code:
RewriteEngine On
RewriteRule  ^Edward_Kennedy_Studio/Welcome\.html  /index.html  [R=301]
would probably also work.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
sourc8
Newbie
*
Offline Offline

Posts: 2


« Reply #2 on: April 21, 2010, 03:59:04 PM »

You rock!!!!  Works perfectly.  I saw similar fixes on other posts but couldn't get it just right, as you did.  Thanks!   Applause
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: