I actually just realized that, pickle, and my htaccess looks like this now:
Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^(\w+)/([0-9]+)/$ $1.php?state=$2
which works fine... except for the blasted css.
Here's my index.php header:
Code: Select all
<?php $mustBeLoggedIn = false; $title = "";
require 'include/_head.php'; ?>
<body>
and here's 'include/_head.php'
Code: Select all
<?php
require '_session.php';
include 'codes.php';
if($mustBeLoggedIn && !$loggedIn) {
header("Location: ../notLoggedIn.php");
die();
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Secure Prompt <?php echo $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="icon" href="images/SP_mark_I.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="cssjs/sitewide.css" />
</head>
I tried putting rewritecond in like so:
Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond $1 !^.*?\.css$
RewriteRule ^(\w+)/([0-9]+)/$ $1.php?state=$2
but that made no difference.