This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ruslan6
ruslan6

I have a problem when I try linking documents with the twig filters in the docs. For example, notice how in this url - http://www.mhscompsci.com/themes/october-theme/assets/courses/compsci2/Lecture%20DocumentsII/Intro%20to%20OO%20Dev%20&%20Terms.doc - there is /themes/october-theme/theme/assets/*.

This linking format is very ugly and I was wondering where in the repo I could find the code section that routes the twig filters. Then I could setup a rule in .htacces to rewrite the new requests to the old ugly url. Something like this- RewriteRule (.+) /themes/october-theme/assets/$1. You can test it out on this site with this url http://www.mhscompsci.com/courses/compsci2/Lecture%20DocumentsII/Intro%20to%20OO%20Dev%20&%20Terms.doc and the mentioned .htaccess code. If I am confusing you, feel free to ask.

alxy
alxy

Maybe you could use this plugin: http://octobercms.com/plugin/flynsarmy-redirection

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.