1

I have URLs that look like this:

page.php?id=1&lan=en

I want to change it to page-1.html?lan=en via htaccess.
Please note that I have to get the value of both parameters id and lan too.
Thanks in advance.

1 Answer 1

1

You can use codes below. I didn't try it, but it should work

Options +FollowSymlinks
RewriteEngine On

RewriteRule ^page-(\d*).html$ page.php?id=$1 [L,QSA]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.