• Hi

    With the permalinks set to the name of the posts and pages, I need to put a static directory in the main path or in a subdomain …

    Where can I find the tricks to declare these kinds of exceptions to the permalinks ?

    Or does a plugin build this ?

    Thanks a lot

Viewing 1 replies (of 1 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Add this to your .htaccess file *above* the WordPress stuff

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/subdirectoryname1/(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^/subdirectoryname2/(.*)$ [OR]
    RewriteRule ^.*$ - [L]
    </IfModule>

    stuff in those subdirectories will not be handled through WordPress.

Viewing 1 replies (of 1 total)
  • The topic ‘How create a static directory in wordpress ?’ is closed to new replies.