Create a custom subfolder for myself [PROBLEM]

  • Author
    Posts
  • #1277011

    tzzoug
    Member

    Hi,

    I’m trying to have a subfolder to put my own php files. (ie: mySubdirectory)

    My htaccess looks like this:

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

    I read everywhere, and people are saying to simply put
    RewriteCond %{REQUEST_URI} !^/(mySubdirectory|mySubdirectory/.*)$
    in there but its not working. I tried for 3 hours and im losing it lol

    My htaccess now looks like this.
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_URI} !^/(mySubdirectory|mySubdirectory/.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    I also tried putting an htaccess fil in the mySubdirectory folder like this:
    <IfModule mod_rewrite.c>
    RewriteEngine off
    </IfModule>

    And that didn’t work either.

    Any suggestions?

    #1277104

    auxclass
    Member

    The site you are asking about does not seem to be hosted on WordPress.COM so you need to make friends over at WordPress.ORG the keepers of the software you are using.

    https://en.forums.wordpress.com/topic/7-things-to-know-before-posting-in-wordpresscom-forums?replies=1

    This site is for support of sites hosted on WordPress.COM. You should address your questions to WordPress.ORG the keepers of the software you are using: http://wordpress.org/support/

    For more on the difference: http://support.wordpress.com/com-vs-org/

    #1277111

    tzzoug
    Member

    oh true, thanks!

    #1277113

    auxclass
    Member

    You be welcome

The topic ‘Create a custom subfolder for myself [PROBLEM]’ is closed to new replies.