|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
After rewrite, css doesnt work
if i go to the following location
http://www.impulsive-solutions.co.uk/isweb/about.php it works fine. If i then in a .htaccess file put the following Code:
RewriteEngine on RewriteRule ^about/$ about.php and then navigate to http://www.impulsive-solutions.co.uk/isweb/about/ the page loads but the images and css dont work as if they are not in the wrong directory... Why is this? |
|
#2
|
||||
|
||||
|
It's looking in /isweb/about/style/style.css b/c HTML forms requests based on the original URI, not the rewritten one. The easiest solution in most cases is to use an abolute path in the attribute's value.
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#3
|
|||
|
|||
|
ah thanks, that makes perfect sense
![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Search Engine Optimization > After rewrite, css doesnt work |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|