I've seen this question before in other topics, but it's not working for me, unfortunately... The thing is that I need to access the same page from 2 URL's:
http://website.com/product/productname
AND
http://website.com/product/productname/buy.html
There should be no external redirect, just open the same (first) URL when trying to open second one.
Website is Wordpress based.
Here this should work:
RewriteEngine On
RewriteRule /test/secondpage/ /your-first-page.html [L]
You have to save this as a .htaccess file
If not, search on google, there more solutuions than here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.