htaccess tweaks to ignore non-WP directory
-
Here’s what I need to do:
I have two (for now) directories that I need the mod-rewrite engine to ignore and let act like directories. One is “store” and the other is “protected” – the both contain other files I need to work independently of WordPress.Here is my .htaccess file:
<FilesMatch "\.(?i:pdf)$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^(store|protected)(/|$) - [L,NC] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
The line:
RewriteRule ^(store|protected)(/|$) - [L,NC]
is something I found with an online search but it doesn’t seem to work… and I am on a shared host so I cannot easily restart Apache.Thanks for any help you can provide.
Here is the website:
https://www.ganeshhimaltrading.com/
and
https://www.ganeshhimaltrading.com/store/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘htaccess tweaks to ignore non-WP directory’ is closed to new replies.