I am migrating a website from vivvo cms to wordpress. Vivvo is using category pages like index.numberofthepage.html
I want to redirect urls like using regex:
.200.html
to
/
mycats could be more than one category ex cat1/cat2... and the 200 could be any number. I used :
^/index.(.*?)\.html to ^/page/$1/
But not redirecting. Thanks
I am migrating a website from vivvo cms to wordpress. Vivvo is using category pages like index.numberofthepage.html
I want to redirect urls like using regex:
https://www.example/mycats/index.200.html
to
https://www.example/mycats/page/200/
mycats could be more than one category ex cat1/cat2... and the 200 could be any number. I used :
^/index.(.*?)\.html to ^/page/$1/
But not redirecting. Thanks
Since category and page number is dynamic, you can use htaccess and use this sample rewrite rule below:
RewriteRule (.*?)/index.(.*?)\.html $1/page/$2/
You can test the regex here - https://htaccess.madewithlove.be/ and I can see that it is working as far as I have tested it.
PS: URL Redirections are cached aggresively, you need to clear you browser cache completely to make sure that you are testing it properly.
Hope this helps!