Reputation: 13
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 ??
Upvotes: 0
Views: 51
Reputation: 786359
Put this code in your DOCUMENT_ROOT/.htaccess
file:
RewriteEngine On
RewriteCond %{QUERY_STRING} .+
RewriteRule "^sports betting/index\.php$" $0? [L,NC,R=302]
Upvotes: 1