+ 1

[URL_REWRITING] The page is not showing CSS and Images, what can I do?

I have two URLs : foo.html and foo/bar.html that mactch the following rule #.HTACCESS RewriteRule (.*)(/*)(*.)(\.html?) page.php?key1=$1&key2=$2&key3=$3 #PHP: I can get values from those keys, the first url(foo.html) works wich is translated to page.php?key1=foo. but when i try whit the second one, (foo/bar.html) its translted to some thing like /*/page.php?key1=foo&key3=bar intead of just page.php?key1=foo&key3=bar causing CSS and IMAGES pointed to a wrong directory. How can I fix it, thanks!

19th Sep 2018, 8:35 PM
Marien Mupenda
Marien Mupenda - avatar
1 Resposta
+ 2
While I do have experience with Apache I'm more involved in IIS and Nginx atm. So...you might have more luck over here (maybe also try tagged/apache): https://webmasters.stackexchange.com/questions/tagged/mod-rewrite
23rd Sep 2018, 3:56 AM
Kirk Schafer
Kirk Schafer - avatar