问题描述:

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?

相关阅读:
Top