I am just having a bit of a problem and hope someone can help me. I have to sketch a scenario for you to understand.
My standard .htaccess on my site mantaseosolutions.com looks like this
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]*/)*index\.php? [NC]
RewriteRule ^(([^/]*/)*)index\.php?$ http://www.mantaseosolutions.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^mantawebsolutions.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.mantawebsolutions.com$ [OR]
RewriteCond %{HTTP_HOST} ^mantaseosolutions.com$
RewriteRule ^(.*)$ http://www.mantaseosolutions.com/$1 [R=301,L]
Redirect 301 /contactus.php http://www.mantaseosolutions.com/contactus/index.php
Redirect 301 /newsroom.php http://www.mantaseosolutions.com/news/index.php
ErrorDocument 404 http://www.mantaseosolutions.com
This works a 100% for my site. I have now added a wordpress blog to my site under the /blog/ folder and want to redirect all my old news pages (previously under /news/ folder) to the new location on the blog.
In my new /blog/ folder I am using the wordpress rewrite in a seperate .htaccess file saved in this particular folder as follow:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
I cannot figure out how to correctly set up my two .htaccess files (or combine them) to give me what i want.
I want to redirect all my old posts under the /news/ folder to the new post under /blog/ but this does not happen.
Example:
http://www.mantaseosolutions.com/news/news.php?id=31 must redirect to http://www.mantaseosolutions.com/blo...ark-completed/
Can anyone help ?
Submit Your Article
Forum Rules

Reply With Quote
