简体   繁体   中英

Rewrite rule using RealUrl

I need to set up a forwarding for the following:

www.mysite.com/example/page.html - this no longer exists

that forwards to a page that is generated by TYPO3 using realurl

www.mysite.com/examples/thenewpage/

I've tested several mod_rewrite rules but they don't appear to be taking effect. Is it the case that I need to add some sort of rule to my realurl.conf?

(My setup TYPO3 v 7.6.13 realurl v 2.1.5)

If you use the default TYPO3 htaccess you should add your rule before those TYPO3 RewriteRules. Somewhere at line 280 or earlier.

Anyway I preffer using extensions for those redirects like my_redirects. It has a nice backend module for handling those redirects. https://typo3.org/extensions/repository/view/my_redirects

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM