Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
109 views
in Technique[技术] by (71.8m points)

php - httaccess 301 redirect for multiple file

I have few urls (e.g. helloworld.com/test-1-xyz.html, helloworld.com/test-1-abc.html)which needs to be redirected to a single url (helloworld.com/test-1-contact.html)

So far, I have done this

RewriteRule ^test-1-(.*)$ contact.html [NC,L,R=301]

but it is not working. any idea what's wrong with my code?

question from:https://stackoverflow.com/questions/65891013/httaccess-301-redirect-for-multiple-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...