L
L
Leonid2018-05-29 15:50:53
htaccess
Leonid, 2018-05-29 15:50:53

Redirect rule from /faq/37.page to /faq/37-page/ to .htaccess - how?

The site has moved to WordPress - you need to write a redirect from the old addresses to the new ones for PS.
How to write a redirect rule for URLs of the form:
/faq/37.page >>> /faq/37-page/
Considering that the number 37 can naturally change for different pages.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid, 2018-05-29
@easycode

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^faq/([0-9]+)\.page$ faq/$1-page/ [R=301,L]
</IfModule>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question