aruns Posted December 24, 2008 Share Posted December 24, 2008 Hi Guys, Here is my htaccess code.It loads a web page good but the web page cannot load css files and images <ifModule mod_rewrite.c> RewriteEngine on RewriteRule ^source/electronics/?$ /?target=source&id=1 [L,QSA] </ifModule> Quote Link to comment https://forums.phpfreaks.com/topic/138284-need-help-with-htaccess/ Share on other sites More sharing options...
d.shankar Posted December 24, 2008 Share Posted December 24, 2008 To load ur css properly give the full path in your coding files not in the .htaccess for eg: <LINK REL="stylesheet" TYPE="text/css" HREF="http://yourdomain.com/file.css"> Quote Link to comment https://forums.phpfreaks.com/topic/138284-need-help-with-htaccess/#findComment-723008 Share on other sites More sharing options...
RussellReal Posted December 24, 2008 Share Posted December 24, 2008 d.shanker.. rewrites take requests and redirects either silently or fully (depending on structure). these will ofcourse affect your link solution.. try this arums <ifModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_URI} !^(?=.*?\.css).*$ RewriteRule ^source/electronics/?$ /?target=source&id=1 [L,QSA] </ifModule> Quote Link to comment https://forums.phpfreaks.com/topic/138284-need-help-with-htaccess/#findComment-723013 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.