doddsey_65 Posted January 6, 2011 Share Posted January 6, 2011 this rule doesnt work as such. it loads the page but not any css. RewriteRule ^f/([a-zA-Z0-9_-]+)/t/([a-zA-Z0-9_-]+)/?$ view_posts.php?fid=$1&tid=$2 anything i did wrong? Quote Link to comment https://forums.phpfreaks.com/topic/223537-rule-with-2-parameters-not-working/ Share on other sites More sharing options...
requinix Posted January 6, 2011 Share Posted January 6, 2011 Since it "doesnt work" I guess that yes, in fact, you did something wrong. There are two problems: - You have everything going to view_posts.php. Instead, it should only try that when the requested file doesn't exist. RewriteCond is your friend. - The browser might be looking for f/123/t/456/style.css. It isn't there. Make sure your paths begin with a slash like "/style.css" and the browser will always know the right place to look. Quote Link to comment https://forums.phpfreaks.com/topic/223537-rule-with-2-parameters-not-working/#findComment-1155522 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.