• I have recently registered a new domain and installed WordPress in a folder off of the main Public_HTML folder. I did this so that I could keep all of my WordPress files and content separate and easy to update etc.

    There are two things that I want to do:

    1) I want to have https://www.mydomain.com be my main domain and I would like to redirect users going to mydomain.com to https://www.mydomain.com

    2) When users arrive at https://www.mydomain.com I want them to invoke my WordPress blog that is located at https://www.mydomain.com/blog. Furthermore when they do this, I want the browser address bar to show https://www.mydomain.com (and not the folder)

    I am new to the server side stuff required to do this and I have been searching for the answers to do this in the .htaccess file. Unfortunately, so far I have only had partial success.

    Hopefully someone here can help with this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • If I understand correctly, this article will be a big help: Giving_WordPress_Its_Own_Directory

    Thread Starter markm14580

    (@markm14580)

    Thanks, HandySolo.

    I did read that article however, I would rather not move the WordPress files (i.e. .htaccess and index.php) into the main folder as it suggests. The reason is that I may want to host several WordPress blogs with this account in the future, each with separate domains. The idea is that each blog would have it;s own folder with WordPress and I would not clutter the main domain folder.

    I think that this can be done, but I obviously have not yet found to way to do so.

    Any other thoughts?

    The reason is that I may want to host several WordPress blogs with this account in the future, each with separate domains.

    Another domain is another domain. Period.
    They have nothing to do with each other. Nor have the WP installations on different domains.
    No, there are no other thoughts – what HS posted is the way to go.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirects with WordPress in subdirectory’ is closed to new replies.