WordPress.org

Ready to get started?Download WordPress

Forums

How Do I Remove WordPress From Vpstutorial? (3 posts)

  1. seoblogbuzz
    Member
    Posted 2 years ago #

    I have a subdomain installed on a Centos VPS.

    http://wordpressvps.keywordxpreview.com

    Then, I made a folder named as vpstutorial.
    So, the URL read as

    http://wordpressvps.keywordxpreview.com/vpstutorial/

    After installed WordPress, my new URL is now

    http://wordpressvps.keywordxpreview.com/vpstutorial/wordpress/

    My current .htacces file

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>

    # END WordPress

    Current Index.php

    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */
    require('./wordpress/wp-blog-header.php');
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www.)?keywordxpreview.com/$
    RewriteRule ^(/)?$ wordpressvps[L]

    Any idea to make the URL to be read as

    http://wordpressvps.keywordxpreview.com/vpstutorial/

    to exclude WordPress

    Much appreciated
    Thanks

  2. ClaytonJames
    Member
    Posted 2 years ago #

    The solution is to install WordPress directly in the /vpstutorial sub-directory. Don't install it in /vpstutorial/wordpress.

    Options:

    1) reinstall WordPress directly in /vpstutorial

    2) move it from /wordpress - to - /vpstutorial

    Moving WordPress

  3. seoblogbuzz
    Member
    Posted 2 years ago #

    Thank you for the replied.
    I had tried it also, but not working this way.

Topic Closed

This topic has been closed to new replies.

About this Topic