A
A
Asjacker2020-09-30 17:41:04
htaccess
Asjacker, 2020-09-30 17:41:04

.htaccess how to edit the code?

Hello! I have a code: RewriteRule ^([a-zA-Z-_0-9]*).gif$ /text.php?alias=$1 [L,QSA] , I need to make it so that in addition to ?alias=$1 &data=$2

As a result, the link should look like this: example.cm/alias.gif?123
where alias is ?alias=
and ?123 is &data=
How to do it? I'm very bad at understanding. Help me please!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
felony13twelve, 2020-09-30
@felony13twelve

I'm no expert in .htaccess but try this

RewriteRule ^([a-zA-Z-_0-9]*).gif$ /text.php?alias=$1&data=$2 [L,QSA]

F
FanatPHP, 2020-09-30
@FanatPHP

Lord, you should never pass anything from .htaccess.
Everything is in RNR.
Can you explain why you want to transfer to PHP what it already has?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question