|
View previous topic
::
View next topic
|
| Author |
Message |
affilweb
Joined: 04 Nov 2008
Posts: 4
|
Posted: Tue Nov 03, 2009 12:37 am
Post subject: 301 Redirect Problem
|
|
|
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 |
|
 |
AllanGardyne
Site Admin
Joined: 02 Jul 2003
Posts: 6302
Location: by the beach, Australia
|
Posted: Tue Nov 03, 2009 4:47 am
Post subject:
|
|
|
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 |
|
 |
affilweb
Joined: 04 Nov 2008
Posts: 4
|
Posted: Tue Nov 03, 2009 11:40 am
Post subject:
|
|
|
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 |
|
 |
affilweb
Joined: 04 Nov 2008
Posts: 4
|
Posted: Wed Nov 04, 2009 1:02 am
Post subject:
|
|
|
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 previous topic :: View next topic |
|