66 posts
  • Has sold $1+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 5 years
+1 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
  • Has been part of the Envato Community for over 5 years
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
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
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 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…

2459 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+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