wordpress `.htaccess` Rewrite rule except one folder [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
开发者_运维技巧 Improve this questionI want put some files in the folder wordpress/crontab/
make some cron job. So I need all the files under wordpress/crontab/
can run well and not pointed into a 404 page
. Here is the Rewrite rule in wordpress .htaccess
, how to add some line that allow folder wordpress/crontab/
out off the rule? Thanks.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
Okay, I'll post this as an answer too:
What @kb said (in the comments) is right, seems like you should be accessing localhost/crontab/text.php
instead, because of the RewriteBase
set to /wordpress/
Cheers.
精彩评论