Svetoslav
Svetoslav

Reputation: 4686

wordpress rewrite rule need fix

Hello I have this rewrite Rule at my Wordpress

RewriteRule ^trip/(.*)/$ /index.php?page_id=143&trip=$1 [L]

Its working but I have this problem.. when I enter page called -

http://example.com/trip/22/?lang=en

the $_GET['lang'] doesn't work. I suppose that the url is becoming something like

/index.php?page_id=143&trip=22?lang=en

which doesn't work.. Can some one advice me how to replace the question mark from ?lang=en with & ..

Upvotes: 1

Views: 107

Answers (1)

MatTheCat
MatTheCat

Reputation: 18751

I think you just need the QSA flag.

Upvotes: 2

Related Questions