S
S
shnicel2016-05-31 19:07:33
Apache HTTP Server
shnicel, 2016-05-31 19:07:33

rewriteRule not working cause?

I'm trying to convert links like domain.ru/?code=1asdasdaw14 to domain.ru/code/1asdasdaw14 doesn't work I'm trying like this

RewriteEngine On
RewriteRule ^code/([^/]*)$ /?code=$1 [L]

Cause?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tasce, 2016-05-31
@tasce

Need to change places. Like this:
RewriteRule ^/?code=([^/]*)$ /code/$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question