How to remove additional url?

How to remove https://host/page/post.php ?i=1

https://host/page/post.php ?i=2
https://host/page/post.php ?i=3

i can understand that the number ( ?=2) is depending on url refresh counts

so, after the extention ?i=3
it’s not be /?i=4 . it redirect google support page. may be this is my browser problem.

How to remove that extention in my url ?


You can try to add below statement to .htaccess:-

RewriteEngine On
RewriteCond %{QUERY_STRING} .
RewriteRule ^([^.]*)$ /$1? [L,NE,R=301]

Note: This method will erase all GET parameters. In case you want to install plugins or scripts, to your website, and they will not work, I recommend removing the content (Code Snippet) from your .htaccess document.

i understood more about this!


1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.