Top Articles

Stay In Touch


Affiliate Marketing Forum

FAQ FAQ Search Search Memberlist Memberlist Usergroups Usergroups
Register Register Profile Profile Log in to check your private messages Private Messages Log in Log in

301 Redirect Problem

Affiliate Marketing Forum Index » Do-It-Your-Selfers
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
affilweb



Joined:
04 Nov 2008

Posts:
4


Post Posted: Tue Nov 03, 2009 12:37 am
      Post subject: 301 Redirect Problem

Reply with quote

Hi Everyone.

I had an html website and I just changed it to Wordpress. Since it's already a PR3, I don't want to be penalized by google because most of my URLs are different now.

I just need to redirect all of my pages, one by one, to the new URL's but I'm having some problems.

I'm using a linux server and at the moment I have the following code in my .htaccess file:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

I left one space line and wrote:

redirect 301 /old/oldurl.html http://newurl/

and it gives me "page not found".

I need to do this for hundreds of pages, one by one. Can you please help me getting the code right?

Thank you.
Back to top View user's profile Send private message
AllanGardyne
Site Admin


Joined:
02 Jul 2003

Posts:
6302

Location:
by the beach, Australia

Post Posted: Tue Nov 03, 2009 4:47 am
      Post subject:

Reply with quote

In the root directory, we're using...

Code:
redirect 301 /oldfile.html http://www.new.com/new

...which looks like what you're doing.

Is your web host helpful? You could try putting in a support ticket.

Sorry I couldn't be more help.
_________________
Allan Gardyne
AssociatePrograms.com - You're here. Explore it!
Back to top View user's profile Send private message Visit poster's website
affilweb



Joined:
04 Nov 2008

Posts:
4


Post Posted: Tue Nov 03, 2009 11:40 am
      Post subject:

Reply with quote

Hi Allan.


Thanks anyway. I'm using lunarpages for this website. I'll try to contact them to see if they can help me out.

Thank you.
Back to top View user's profile Send private message
affilweb



Joined:
04 Nov 2008

Posts:
4


Post Posted: Wed Nov 04, 2009 1:02 am
      Post subject:

Reply with quote

I managed to get the redirect from all pages from the old html website to the new one. But now I'm having a different problem:

Some of the pages should go to the home page. There shouldn't be any problem about it but when I upload the new .htaccess file, I just can't enter in the website. It's like it doesn't exist. This happens both when I place the new URL or the old URL...

This doesn't happen with any other pages.


Any ideas?


Thank you.
Back to top View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic
Affiliate Marketing Forum Index » Do-It-Your-Selfers
Page 1 of 1 All times are GMT

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Newsletter Sign-up

Sign-up Now!

How to make $1000 a month from scratch

Sign-up for our newsletter and receive our 77 page eBook "How to make $1000 a month from scratch".

Best of all it's FREE!

Your Host

Allan Gardyne

Learn from an affiliate veteran.

Your host, Allan Gardyne, has been earning a good living from affiliate programs since 1998.

Want a BETTER article writer? We will write good articles just for you.

Content Kingdom