开发者

Always load one file with .htaccess

I can't get this to work;

It should do these things: Always load page.php (when file does not exists on server). .include is an existing folder. When the user visits .include/..., then also load page.php My scripts starts with RewriteEngine On, but then I'm s开发者_StackOverflowtuck... What can I do now to solve this problem?


Your post is terribly non-descriptive. Can you provide code samples, elaborate, etc..?

From what I can tell, you might try this:

RewriteEngine On
Options +FollowSymlinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /page.php [NC,QSA]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜