Reply
Need some help on redirecting pages
Old 10-06-2006, 05:08 AM Need some help on redirecting pages
Novice Talker

Posts: 11
Name: Heine
I have recently update my website (and I didn't notice that the files were automatically saved as .html whereas the old pages were .htm) Therefore, I have want to redirect 301 my old pages.

Therefore, I have created an .htaccess for each website and uploaded it (as ASCII mode).

However, when I try to type in the URL's of the old pages i get "page not found 404", instead of being redirected to the new pages.

The codes in my .htaccess files all look like this (of course the page name changes for each page)

redirect 301 /var/www/surgery/about_us.htm http://www.hygeiasurgery.com/about_us.html

I really hope somebody can help me with this??
__________________
<3 lines max in signature>
hygeiahealthcar is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 10-08-2006, 02:12 AM Re: Need some help on redirecting pages
Average Talker

Posts: 15
Wow, that was silly
Has google come to your site since then? If not that many times, I'd say just rename the files back to .htm and you should be ok
__________________
chml srucnoc - contest for chml srucnoc phrase
justtupeu is offline
Reply With Quote
View Public Profile Visit justtupeu's homepage!
 
Old 10-08-2006, 06:42 AM Re: Need some help on redirecting pages
chrishirst's Avatar
Super Moderator

Posts: 12,808
Location: Blackpool. UK
in your redirect you are redirecting a physical path to a URL

Both should be urls
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-08-2006, 11:40 AM Re: Need some help on redirecting pages
montux's Avatar
Average Talker

Posts: 21
Name: Manish Mathukiya
Probably This article might help you >> http://www.searchenginepromotionhelp...irect-safe.php
__________________
montux is offline
Reply With Quote
View Public Profile Visit montux's homepage!
 
Old 10-08-2006, 11:43 PM Re: Need some help on redirecting pages
Novice Talker

Posts: 11
Name: Heine
Thanks for the link. As I understand from this article i must type the path (directory) of the old pages and the URL of the new pages. Is this correct?

Does it create a problem for redirecting that the old pages don't exist anymore? (I of course have backup, but they are no long in the folder on the web server)

Will it work if I type the URL of both the old and new pages (instead of the path) like chrishurst suggested?
__________________
<3 lines max in signature>
hygeiahealthcar is offline
Reply With Quote
View Public Profile
 
Old 10-11-2006, 06:49 PM Re: Need some help on redirecting pages
AirAndAqua.com's Avatar
Experienced Talker

Posts: 35
Name: James
you don't need to put /var/www... i don't think...

just put it like this:

redirect 301 /surgery/about_us.htm http://www.hygeiasurgery.com/about_us.html

does that seem right? I just tried it this way and worked for me today...
__________________
http://www.airandaqua.com (Air and Water Purification Products)
http://www.dssexteriors.com (Minnesota Exteriors Storm Damage insurance Claims)
Personal Page - www.myspace.com/jamesjrmn
AirAndAqua.com is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need some help on redirecting pages
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14474 seconds with 13 queries