tomdelonge Posted September 5, 2008 Share Posted September 5, 2008 so i've been reading about it (minimally). at any rate, i finally got this to work in my .htaccess file: RewriteEngine On RewriteRule ^aboutus/ /aboutus.php [PT]the the only issue is that if i type: localhost/aboutus/ then it works like it should (it goes to the correct page and such), but the css doesn't load (everything is black and blue, hyperlinks and default text) if i go to localhost/aboutus.php it works correctly. what's going on? Quote Link to comment https://forums.phpfreaks.com/topic/122911-solved-mod_rewrite/ Share on other sites More sharing options...
DarkWater Posted September 5, 2008 Share Posted September 5, 2008 Well, you aren't telling the webserver anything different, are you? That's how it should function. What's the problem with letting them access it either way? >_> Quote Link to comment https://forums.phpfreaks.com/topic/122911-solved-mod_rewrite/#findComment-634882 Share on other sites More sharing options...
tomdelonge Posted September 5, 2008 Author Share Posted September 5, 2008 no, that's not what i mean. when you go to /aboutus/ then the page doesn't display correctly (the css probably doesn't load). if they go to aboutus.php then it loads correctly. i want the url to be /aboutus/ thanks. Quote Link to comment https://forums.phpfreaks.com/topic/122911-solved-mod_rewrite/#findComment-634928 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.