Mobile app version of vmapp.org
Login or Join
Cooney921

: How do I 301 redirect from the root folder to a sub folder while keeping the rest of the URL string intact When I first launched my site, it I had MediaWiki in the root and a wordpress

@Cooney921

Posted in: #301Redirect #Htaccess #Php

When I first launched my site, it I had MediaWiki in the root and a wordpress blog in a subfolder, /blog/.

After a while spammers took over the MediaWiki site and I had to remove it. The problem is I lost a lot of good content and inbound links from 3rd party sites.

My goal is to redirect the root folder to /blog/ while keeping the rest of the URL string intact. I have a Wordpress plug-in going that will automatically track the 404 errors. As these come in I'll be able to pull the old content from archive.org and give it a new home on a wordpress page.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

Try using mod_alias in Apache.

For example:

# When someone visits "/" (root) actually take them to "/blog".
Alias / /blog

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme