66 posts
  • Has referred 1+ members
  • Has sold $1+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Located in United States
+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
  • 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 6 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…

2468 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
+2 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…

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by