• Henry

    (@seoblogbuzz)


    I have a subdomain installed on a Centos VPS.

    https://wordpressvps.keywordxpreview.com

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

    https://wordpressvps.keywordxpreview.com/vpstutorial/

    After installed WordPress, my new URL is now

    https://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

    https://wordpressvps.keywordxpreview.com/vpstutorial/

    to exclude WordPress

    Much appreciated
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    Thread Starter Henry

    (@seoblogbuzz)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How Do I Remove WordPress From Vpstutorial?’ is closed to new replies.