开发者

Always load one file with .htaccess

开发者 https://www.devze.com 2023-03-09 19:21 出处:网络
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 pag

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

精彩评论

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