CSS not loading after URL rewriting
I am trying to rewrite URL from example.com/test.php?id=hd3j3 to example.com/id/hd3j3. The problem is rewriting occurs and I am taken to the page but the css and js of the page doesn't load. Where am I going wrong? .htaccess RewriteBase / RewriteEngine On RewriteRule ^id/([A-Za-z0-9]+)$ test.php?id=$1 [L]
Your rewrite rule looks right for me. Maybe your css gets loaded from a relative path and not absolute ? <link href="css/layout.css"> The browser try to load from example.com/id/css/layout.css instead of example.com/css/layout.css
Try to clear the cache and retry ! This usually works.Or set the root path correctly. If these won't work try this, If you want to use image tag and show to correctly images, use " />
can someone briefly explain Single sign on? i want to use openid as SSO
Efficient flat file searching in PHP
Form Builder GUI for PHP
How do Python and PHP compare for ecommerce?
Wordpress PHP If else help
Changing upload_max_filesize on PHP
php session and path setting
php script Config settings
PHP SOAP client that understands multi-part messages?
php check if domain equals value, then perform action
How can I implement RSS 2 in Code Igniter?
Error with MySQL syntax using REPLACE INTO
how to store chechbox value in php
mysql muliple queries in one statement
PHP Static Variables