Forums

[htaccess] Redirect to V1/ + normal WP rewrite (1 post)

  1. Dauntless
    Member
    Posted 3 years ago #

    Hi,

    Situation: My WP installment is located in the v1/ directory at the root of my domain.

    What I want: If the user goes to mydomain.com/something-that-exists, I want to do nothing. If it doesn't exist however, I want it to be rewritten to v1/index.php.

    My current WP .htaccess that is located in v1/

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /mydomain.com/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /mydomain.com/index.php [L]
    </IfModule>
    
    # END WordPress

    All help is welcome :)

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.