rewrite adress url

Special section for communicating in English
Аватара пользователя
LordStark
Сообщения: 9
Зарегистрирован:
12 дек 2014, 16:49

rewrite adress url

LordStark » 18 ноя 2018, 22:14

Hi
I would like to rewrite the page address
from so

http://localhost/Testcerca2/cinema.php?id=1

like that

http://localhost/Testcerca2/Lana Turner

.htaccess code
<IfModule rewrite_module>

#RewriteEngine On
#RewriteCond %{REQUEST_URI} !cinema\.php [NC]
RewriteRule ^([^/]+)(.*)?$ cinema.php?id=$1   [L]
#RewriteRule ^([^/d]+)/?$ Testcerca2/cinema.php?id=$1 [QSA]

</IfModule>
Ответить