Reputation: 3
I'm trying to write a .htaccess code for directory. Following is the example, which is I'm trying to get it done.
RewriteEngine On
RewriteBase /
RewriteRule ^member member.php
RewriteRule ^member\/status status.php
When I try with example.com/member
, it works perfectly. And when I try for example.com/member/status
it shows me member.php wihout any css or JS loading. The ideal output is to show status.php but it showing member.php without CSS and JS files.
Any idea where I'm wrong
Upvotes: 0
Views: 43
Reputation: 46900
In that case your first rule should end the match at member
since it specifically wants to match only that.
RewriteRule ^member member.php
Should be
RewriteRule ^member$ member.php
^
Upvotes: 1
Reputation: 3738
please include this on your <head>
Make sure to change yourdomain.com
with your domain
<base href="http://yourdomain.com" />
Upvotes: 0