.htaccess Style linking error.....

Status
Not open for further replies.

Sean

‫‫‫‫‫‫  ‫  Don't Worry, Be Happy
Dec 12, 2011
1,121
405
Using htaccess to re-direct everyone to this page. But the stylesheet do not work on it ?

HTML CODE :

HTML:
<html>
<head>
<title>Coming Soon</title>
<link  rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
Coming Soon
</body>
</html>

DIRECTORY :

WBOLd.png



.HTACCESS:

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^111\.111\.111\.111
RewriteCond %{REQUEST_URI} !^/coming-soon/!$
RewriteRule ^(.*)$ http://sean-davies.com/coming-soon/! [R=307,L]
 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
 

Alam

shietttt
Jul 3, 2011
433
166
Try adding the following line of code to your .htaccess, locate your stylesheet in a css folder and name it style.css
RewriteRule \.css$ /css/style.css [NC]
 
Status
Not open for further replies.

Users who are viewing this thread

Top