它在Spring MVC中
www.example.com/birthday/Newyork
,它的工作
我想要这样的新网址www.example.com/birthday-Newyork
它应调用内部旧URL,即www.example.com/birthday/Newyork
的功能,但希望显示新的URL
我写了这样的mod_rewrite
RewriteRule ^(.*)/birthday-Bengaluru $1/birthday/Bengaluru [R,L]
但它在顶部显示旧网址
需要像这样的解决方案
1) User lands on new SEO'd URL
2) Using mod_rewrite, ISAPI_Rewrite, etc. new URL points to old URL on the server
3) Server calls the code from the old URL
4) Page is displayed in browser, displaying the new URL
任何解决方案?例子?