T
T
thekot242016-06-10 20:53:35
htaccess
thekot24, 2016-06-10 20:53:35

How to make sure that there is no 500 error?

Guys, in htaccess I have the following code:

AddDefaultCharset utf-8
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ $1.php
RewriteRule ^profile/id([0-9]+)$  profile.php?id=$1

How can I prevent the browser from giving a 500 error when going to /profile/id1 (example)? what needs to be replaced? I'm a bit of a stump.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
thekot24, 2016-07-11
@thekot24

Окей, отвечу сам на свой вопрос.

AddDefaultCharset utf-8
RewriteEngine On
RewriteRule ^(.*)$ $1.php
RewriteRule ^profile/id([0-9]+)$  profile.php?id=$1
-- сработает.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question