当前位置: 动力学知识库 > 问答 > 编程问答 >

php - an error occurred while processing the directive (htaccess)

问题描述:

This is what I have written in my .htaccess

Options +FollowSymLinks

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME}\.php -f

RewriteRule ^(.*)$ $1.php

RedirectMatch 403 /\..*$

Options -Indexes

This should remove the .php extension from the url, which it does.

But I have this page cont.php which displays the users account.

This is the format of it. cont.php?id=$id. Now when I access that page I get this error on the bottom of the page. [an error occurred while processing the directive]. How can I fix this? Also, how can I make it so instead of cont.php?id=$id It would force that link to /account/$id?

分享给朋友:
您可能感兴趣的文章:
随机阅读: