0

I am having below URL I want to hide 'target' and 'pageid' in mysql to avoid SQL injection. https://www.stmtps.com/rigid/index.php?target=pages&page_id=MonthlySpecials

3
  • Your question is not clear. What is the expected output? And what do you mean by Hide. Please add some more details to your question. Commented Oct 9, 2015 at 10:52
  • If you want to hide target and pageid, then use POST method instead of GET. Commented Oct 9, 2015 at 10:59
  • Please add more details. Thanks. Commented Oct 9, 2015 at 11:04

1 Answer 1

1
RewriteRule ^profile/([0-9]+)/([A-Za-z0-9-]+)/?$ index.php?p=profile&id=$1

Should work for :

www.domain.com/index.php?p=profile&id=20

to

www.domain.com/profile/20/profile-friendly-name
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.