I've installed wordpress into a inner directory. like root/mysite
. Why I didn't install it on root because there are so many addon domain installed, and I literally don't want to mess all addon domain folders with wordpress files inside root directory. My root directory is for www.example.com
. And my wordpress site I've installed on root/mysite
, so the url for that is www.example.com/mysites
. Is there anyway to redirect www.example.com/mysites
to www.example.com
. As I said the only reason for not installing wordpress on my root, because I don't want to mess wordpress files, folders with other addon domain's folders on root.
So my main goal is showing a wordpress site on www.jimfahad.com
that is installed on www.example.com/mysites
. Is there any way?
Yes, you can leave the WordPress install and folders in
mysites
, but you have to copy the.htaccess
file and theindex.php
file to root. This will result in the visual URL of WordPress being in root(example.com)
, but the uploads, theme URLs, etc, being inexample.com/mysites
.See the WordPress Codex > Giving WordPress Its Own Directory « Using a pre-existing subdirectory install on how to copy and edit the files: