Hi all.
I currently have friendly URLs and aliases turned on for my site which is working fine.
However, I need to add some extra rewrite rules to provide redirects for the old version of the website, which has been replaced with the MODx version. I’m having a little bit of trouble getting these extra rules to work with the
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
line which is the major one for Friendly URLs. If I add my extra rules after this, they don’t have any effect at all, presumably because the URL has already been internally rewritten to the index.php?q= format. If I place them before this line, my site loses its CSS and images for some reason.
The extra lines I want to add go something like this:
RewriteRule ^asd/([a-z]+).html$ /churches/asd/$1.html [R]
RewriteRule ^anpd/([a-z]+).html$ /churches/anpd/$1.html [R]
RewriteRule ^wad/([a-z]+).html$ /churches/wad/$1.html [R]
Once they’ve been visibly rewritten in that format I am happy for MODx to internally rewrite them in the format it needs, but for some reason when this happens I lose images and CSS.
Can anyone shed some light for me please?
I’m using Apache and Revo version 2.0.7.
Thanks