Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

mod_rewrite condition issue

Options
  • 03-10-2008 12:04pm
    #1
    Registered Users 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