WebFaction
Community site: login faq

Hi,

I'm migrating an old domain to Webfaction from a prior web host. I want to host the new site as a Wordpress blog, so I've installed a Wordpress site on a temporary domain to get it setup before I shift the domain.

There will be links to locations on the old site, which will not match on the new site. I figure .htaccess is my friend here, I can just redirect the incoming links to new locations.

To test it, I edited the .htaccess in the Wordpress root folder and added the last RewriteCond and RewriteRule. My aim is to redirect all http://af.openfutures.net/nuevo/blahblahblah links to http://af.openfutures.net/blahblahblah

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
**RewriteCond %{HTTP_HOST} ^af.openfutures.net
RewriteRule ^nuevo/(.*)$ http://af.openfutures.net/$1 [L,R=301]**
</IfModule>

# END WordPress

Totally fails. When I try to access /nuevo, I get a 404. I don't have any cache plugins in Wordpress.

So... I'm asking for help.

  1. Is the Rewrite rule just wrong (I'm not expert, I copied it from someone)?
  2. is the .htaccess in Wordpress root the wrong place to put this rule?
  3. am I missing something else?

asked 19 Dec '14, 04:04

timmansfield
11112
accept rate: 0%


Oh. It seems Wordpress just writes over that file.

So, I've installed the Redirection plugin in Wordpress.

permanent link

answered 19 Dec '14, 05:02

timmansfield
11112
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×242
×73
×13

question asked: 19 Dec '14, 04:04

question was seen: 32,537 times

last updated: 19 Dec '14, 05:02

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM