0

I have many dynamically generated pages via views and it seems the easiest way to redirect them is using the .htaccess file via a RewriteRule. I put in the following right above the index.php rewriterule and none of the css files are loading anymore. obviously i have something wrong here, but what?

Doesn't the first rewrite fire only if it detects the buy string in the first part of the url? I dont see how that would interfere with anything.

RewriteRule ^buy(/?.*) http://www.EXAMPLE.com/buy$1 [R=301,L]

RewriteRule ^ index.php [L]

enter image description here

1 Answer 1

0

actually i put the RewriteRule above the RewriteCond and it seems to be working good now. so it seems that RewriteCond corresponds to the RewriteRule that's right below it only like an inline if statement

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.