Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I had used IIS 7 rewrite module to rewrite URL. Now the Rewritten URL works properly and redirects to the right page but the CSS of the page is not functioning properly. What have i missed out Please help...
Posted
Comments
Afzaal Ahmad Zeeshan 15-Nov-14 7:11am    
Can you tell why CSS is not functioning?
Irene Joyce 17-Nov-14 0:39am    
I actually wanted to rewrite my url, I had rewrited it succesfully.. after typing my rewritten url I was directed to the right page but the CSS of the page is not functioning...I have no idea why the CSS is not functioning...

1 solution

You can try to add this JavaScript in the HTML section to check the path of your page.
HTML
<script type="text/javascript">
    window.onload = function()
    {
        alert(document.location.href);
    }
</script>

Then you can check if your CSS files are in this location.

At least this will help you in your trouble shooting efforts.
 
Share this answer
 
Comments
Irene Joyce 17-Nov-14 0:45am    
Thanks George, I have added the javascript but still the CSS is not functioning.
George Jonsson 17-Nov-14 21:40pm    
Adding the javascript is not a solution, it will just show you the path from where the page is loaded.
Irene Joyce 17-Nov-14 6:20am    
The Question In short once again:
when url=Doctors.aspx?Address=Delhi&Category=Cardiologist(CSS is functioning) when url=doctors/delhi/cardiologist(CSS is not functioning)

Please help!!!
George Jonsson 17-Nov-14 21:44pm    
Where are your CSS file located in relation to your main page?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900