Asked by intangiblemedia
at 2024-08-13 03:53:39
Point:500 Replies:4 POST_ID:828742USER_ID:11650
Topic:
Apache Web Server;PHP Scripting Language;Regular Expressions
Hi,
I want to add a line to our .htaccess file - before we had pagination on our product lists, but now we are using ajax.
So before it's like:
ANYTHINGBEFORETHESLASH/this-category.html?p=2
(p can be equal to 0,1,2,3,4,5,6,7,8,9,10......20)
and I wish it to 301 permanent redirect to
/this-category.html
So in essence, remove the ?p=2 and deliver it to the same URL without the ?p=2
What is the expression I need to use?
thanks!
I want to add a line to our .htaccess file - before we had pagination on our product lists, but now we are using ajax.
So before it's like:
ANYTHINGBEFORETHESLASH/this-category.html?p=2
(p can be equal to 0,1,2,3,4,5,6,7,8,9,10......20)
and I wish it to 301 permanent redirect to
/this-category.html
So in essence, remove the ?p=2 and deliver it to the same URL without the ?p=2
What is the expression I need to use?
thanks!