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.

mod_rewrite condition issue

  • 03-10-2008 12:04PM
    #1
    Registered Users, Registered Users 2 Posts: 157 ✭✭


    Hi

    I'm working on a branded version of a site with won't have all the functionality of the original so I have written a rewrite condition to redirect users if they enter a url that isn't allowed.

    RewriteCond %{REQUEST_URI} !^/search/webhome [NC]
    RewriteCond %{REQUEST_URI} !^/search/search [NC]
    RewriteCond %{REQUEST_URI} !^/search/redir [NC]
    RewriteCond %{REQUEST_URI} !^/search/help [NC]
    RewriteCond %{REQUEST_URI} !^/search/about [NC]
    RewriteCond %{REQUEST_URI} !^/search/weboffers [NC]
    RewriteCond %{REQUEST_URI} !^/search/afe [NC]
    RewriteRule ^/(.*) http:///search/webhome [L,R=301]

    Which works.
    The problem is that it isn't allowing any assets like images to be displayed.
    What do I need to add to my condition to get the assets to display?
    They will live in a directory called assets and there will be many sub-directories off that.

    Many thanks for any feedback.

    K


Advertisement