Support » How-To and Troubleshooting » Best auto starting WP in sub folder

Best auto starting WP in sub folder

  • WP allows installation in root or sub folder /wpname.
    It also allows naming front and blog default pages.

    What is best way to autostart WP from http://domain.com if located in /wpname?

    If redirecting with index.php in root, hijackers can have fun.

    If with 301 redirect in .htaccess, my host support says is not reliable in Linux/apache.

    And does Google search mind such redirection?

Viewing 4 replies - 1 through 4 (of 4 total)
  • MichaelH


    To make WordPress available at http://mydomain.com just change in Settings->General, the Blog address (URL) to http://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the wpname folder)

    /* Short and sweet */
    define('WP_USE_THEMES', true);

    Then update your permalinks in Settings->Permalinks.

    Thanks for fast response.
    Suppose a hijacker inserts a malicious <iframe ...> at bottom of file. Does it redirect or does WP take over first?

    Or can you tell how to prevent such attacks?



    Can’t address that so will direct you to Hardening WordPress. If you do find a security issue, email security@wordpress.org.

    Tried to mark “resolved”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Best auto starting WP in sub folder’ is closed to new replies.
Skip to toolbar