Im пытается добавить тщеславие на мою веб-страницу, но не работает. До сих пор я пытался сURL-адрес тщеславия, проблема .htaccess
RewriteRule ^([A-Za-z0-9]+)[^.]$ index.php?page=$1 [nc]
и
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .* - [L]
RewriteRule ^(.*)$ index.php?page=$1 [NC]
но не работает, и я не знаю .htaccess синтаксис!
Все, что я получил это сообщение об ошибке:
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Вы знаете, как я могу это сделать? Как я могу make.htaccess перенаправить свой url, который выглядит как www.page.com/vanityurl, на index.php? Page = $ 1, но переменная страницы теперь должна быть «vanityurl».
Я пробовал это на локальном хосте и на своем веб-сервере, но у меня такая же ошибка!
Спасибо! За ваш ответ! :)