Permanent redirect 301 with .htaccess
-
I’m running wordpress under xoops cms in a subdomain at (https://bloggenbent.dagenspolitik.se). This is a wordpress problem and not a xoops problem, so I ask my question here.
Right now I’m in the process of moving the blog out of that domain to a new one, but I’m having some issues with the .htaccess rewrite rules.
This is what I’m writing
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /modules/wordpress/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /modules/wordpress/index.php [L] RewriteRule ^(.*)$ https://www.bloggenbent.se/$1 [R=301,L] </IfModule>
Basically what I want to do is have a rule that takes a link like:
https://bloggenbent.dagenspolitik.se/modules/wordpress/2007/08/24/strningar-kan-frekomma/
and turn it into:
https://bloggenbent.se/modules/wordpress/2007/08/24/storningar-kan-forekomma/
As you can see, only the domain changes. Everything else is exactly the same.
I tried to read the draft article here on www.ads-software.com about this, but this section hadn’t been done yet.
Does anyone know how to repoint the site as mentioned above? Thank you.
- The topic ‘Permanent redirect 301 with .htaccess’ is closed to new replies.