Good morning.
I currently have this little rule in my .htaccess
RewriteEngine On
RewriteBase /
RewriteRule ^brochure/([0-9]+)$ /brochure.php?cat_path=$1 [L]
(i'm just using numbers for example here, will be category names later.)
This redirects perfectly, but when it does, everything I have in directories now fail (css, js, images, includes etc)
I understand the issue (it's throwing the directory structure off).
Changing the rule to this solves the images, css and JS problem.
RewriteRule ^([0-9]+)$ brochure.php?cat_path=$1 [L]
But it's not what I want really.
What's the correct way to do url rewrites and maintain directory structure?
Thankyou, I have search for through previous questions, but couldn't find a suitable answer.