WordPress.org

Ready to get started?Download WordPress

Forums

reconfigure to Manage whole website?! (11 posts)

  1. shinigamy
    Member
    Posted 1 year ago #

    Good day,

    I have WP installed on sub-directory(blog directory) and I wanted to manage the whole website (main page, blog,...etc.) using WordPress, so I was guided to this http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install

    However, I can't simply overwrite/replace the index.php & .htaccess files in the root because they will miss up many other essential things. Therefore, would it be sufficient to just modify the root files with the necessary content needed for WP from index.php an files .htaccess ?! Or should I do something else ?!

    Thanks in advance

  2. chomachomachoma
    Member
    Posted 1 year ago #

    If you have root access, you can change the document root in the virtual host in your Apache configuration file.

    <VirtualHost *:80>
    DocumentRoot /www/example2
    ServerName http://www.example.org

    # Other directives here

    </VirtualHost>

  3. govpatel
    Member
    Posted 1 year ago #

    If you have any other website with index.php file in root then I am afraid to say that you will have use wordpress from directory as you can not have two index files in folder.

  4. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Do you have a running site? URL?

  5. shinigamy
    Member
    Posted 1 year ago #

    Thanks for replaying,

    chomachomachoma Could you elaborate more please, because I don't quite get it !

    govpatel Indeed, but I don't want to uninstall the current WP because that will mess up the theme for the blog on the website.
    The only reason I am trying to do this is because I wanna apply a whole new theme for the whole website using WP, unless there is another approach then I appreciate the guidance.
    Thanks

  6. shinigamy
    Member
    Posted 1 year ago #

    Krishna
    Yes.
    This is the running website http://www.walayah.org/

  7. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    However, I can't simply overwrite/replace the index.php & .htaccess files in the root because they will miss up many other essential things.

    Do you have different copies of the files in your /blog and root?

  8. shinigamy
    Member
    Posted 1 year ago #

    Do you have different copies of the files in your /blog and root?

    Yes. I do.

  9. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Your site is working fine now. Check it.

  10. shinigamy
    Member
    Posted 1 year ago #

    Your site is working fine now. Check it.

    I have never said that the website is not working, so I wonder what you are referring to!

  11. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    I have never said that the website is not working, so I wonder what you are referring to!

    Sorry, if I misread what you stated, but I do not understand what exactly is your problem too. So, please wait for someone else to come and help with your problem.

Topic Closed

This topic has been closed to new replies.

About this Topic