开发者

wordpress `.htaccess` Rewrite rule except one folder [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 9 years ago.

开发者_运维技巧 Improve this question

I 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜