Support » Fixing WordPress » How create a static directory in wordpress ?

  • sourixx

    (@sourixx)


    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

    • This topic was modified 10 months ago by Steve Stern. Reason: moved from installing to fixing
Viewing 1 replies (of 1 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    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.