0

wasted the whole day trying to hide the url parameters from a url using php but failed

sports%20betting/index.php?type=matchresult

i want to remove type=matchresult from the link could somebody help me ??

1
  • Thanks man let me give it a try Commented Mar 6, 2015 at 10:19

1 Answer 1

1

Put this code in your DOCUMENT_ROOT/.htaccess file:

RewriteEngine On

RewriteCond %{QUERY_STRING} .+
RewriteRule "^sports betting/index\.php$" $0? [L,NC,R=302]
Sign up to request clarification or add additional context in comments.

1 Comment

+1, that looks efficient—didn't know about using quotes when there is a space, and never thought of using $0, nice! :)

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.