Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Zeus rewrite.script issues

  • 14-06-2010 02:15PM
    #1
    Registered Users, Registered Users 2 Posts: 9,447 ✭✭✭


    I'm trying to get the Zeus alternative to mod_rewrite working on a new site. I followed the provided documentation in the hosts Knowledge Base and I've managed to set up most of the site with clean URLs. However, certain rewrite rules I specify cause CSS (/css/) and Javascript (/lib/) to stop functioning on the whole site.

    From what I can gather, the offending rewrite rules aren't greatly different from other rules in the rewrite.script document, and they don't involve the CSS/JS files or folders at all. It doesn't affect images or include files (which have their own directories also), so I don't think it's to do with relative/absolute paths.

    I've provided a brief sample of the rules I have in the rewrite.script below. The first rule works fine, but when I add the second and third rules, the CSS disappears:
    match URL into $ with ^/user/([^/\.]+)/purchases/?$
    if matched set URL=/users.php?user=$1&purchases
    
    match URL into $ with ^/user/([^/\.]+)/purchases/by-([^/\.]+)/?$
    if matched set URL=/users.php?user=$1&purchases&sort=$2
    
    match URL into $ with ^/user/([^/\.]+)/purchases/by-([^/\.]+)/([0-9]+)/?$
    if matched set URL=/users.php?user=$1&purchases&sort=$2&page=$3
    

    Has anyone any ideas where I'm going wrong? I submitted a ticket with the host and they pointed be back at the KB and Zeus manual (both of which I've already looked through), and I can't find much about it elsewhere.


Advertisement