Y
Y
Yaroslav Nikitin2014-09-16 17:09:04
PHP
Yaroslav Nikitin, 2014-09-16 17:09:04

How to change [.htaccess] link?

I can't understand how it is possible to make a link of the form:
domain.ru/pages?id=3 A
link of the form:
domain.ru/id3 Could
you please share your knowledge, gentlemen? Or at least how to remove the GET parameter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexLeonov, 2014-09-16
@copyloc

.htaccess :
RewriteEngine On
RewriteBase /
RewriteRule id([0-9]+) pages?id=$1 [QSA]
Don't forget to enable the mod_rewrite module in the Apache configuration and enable AllowOverride

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question