Hello,
I've been trying to get from
http://localhost/AMS/index.php?page=foo&id=bar
or
http://localhost/AMS/subsomain/index.php?page=foo
or
http://localhost/AMS/subsomain/index.php
to
http://localhost/AMS/subsomain/foo/bar
or
http://localhost/AMS/subdomain/foo
or
http://localhost/AMS/subdomain
More clearly, the input is the folder structure, the output index.php with a query string.
As of now I have the following mod_rewrite rules:
RewriteEngine On
RewriteRule ([a-z]+)/([0-9]+)/?$ index.php?p=$1&berichtid=$2 [QSA,L]
RewriteRule ([a-z]+)/?$ index.php?p=$1 [QSA,L]
and my <head> section looks like
<head>
<base href="http://localhost/AMS/" />
<link href="stijlblad.css" type="text/css" rel="stylesheet" />
with stijlblad.css in the /AMS folder.
Now I'm printing the GET variable for debugging purposes and I can see it picks the variables from the URL the way I want it (with /AMS/page and /AMS/page/id. However, if I go to /AMS it says p=php. I wonder wether my rules are correct or not.
The other problem is that my stylesheet isn't working, and I can't figure out why.
Thank you,
Martin Klein Schaarsberg