+ Reply to Thread
Results 1 to 2 of 2

Thread: Redirects with WordPress in subdirectory

  1. #1
    Join Date
    Sep 2007
    Posts
    1

    Default Redirects with WordPress in subdirectory

    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 www.mydomain.com be my main domain and I would like to redirect users going to mydomain.com to www.mydomain.com. My understanding is that this will cause the search engines to rank and index only my main domain (www.mydomain.com)

    2) When users arrive at www.mydomain.com I want them to invoke my WordPress blog that is located at www.mydomain.com/blog. Furthermore, when they do this I want the browser address bar to show 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.

  2. #2
    Join Date
    Jun 2007
    Posts
    314

    Default change directories

    I am not sure what you want for number 1, but this should take care of #2 and maybe #1.

    I have my WordPress files in a subfolder and WordPress opens when people enter http://www.mydomain.com.

    refer to this http://codex.wordpress.org/Giving_Wo..._Own_Directory

    Be sure to backup all of your files.
    Last edited by charlesp; 09-04-2007 at 08:29 AM.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts