66 posts
  • Collector Level 4
  • United States
  • 6 Years of Membership
  • Author Level 1
+2 more
mbianchi27
says

I’m not sure if this is the right section to post this, but my problem is I installed wordpress in a subfolder of my url. I now would like to redirect my main url (www.mysite.com) to use (www.mysite.com/folder) as my main url. Since I do not know how to move my site from the subfolder to the root.

Any help is appreciated.

Thanks

146 posts
  • 6 Years of Membership
  • Collector Level 3
  • Exclusive Author
0703
says
<meta content="0; url=http://www.yourdomain.com/index.html" http-equiv="REFRESH" />

i would say this could do the job. set it between the with a new index.html,

or you can write a redirect right into your .htaccess
Redirect /wordpress/index.php http://www.yourdomain.com
659 posts
  • 6 Years of Membership
  • Affiliate Level 3
  • Collector Level 2
  • Exclusive Author
+3 more
luckykind
says

Probably best to give moving it a try if it’s something you want more permanent…

http://codex.wordpress.org/Moving_WordPress

else, use a .htaccess file…

http://www.dailyblogtips.com/how-to-setup-a-301-redirect/

hope that helps…

2468 posts
  • 6 Years of Membership
  • Author Level 2
  • Affiliate Level 4
  • Beta Tester
+3 more
digitalimpact
says

You could use .htaccess

Create a .htaccess file in your root (www.mysite.com) if you don’t have one already and add the following:

RewriteEngine On

RewriteBase /

RewriteRule ^index.(.*)?$ http://domain.com/subfolder/ [r=301]

Obviously, replace domain.com/subfolder with your own.

Note this is a 301 permanent redirect with htaccess – I don’t really know for sure, but it might impact your seo later on if you want to stop using the subfolder…

by
by
by
by
by
by