Hi,
I have this weird problem. I developed a website on my local server, using so-called pretty urls, and a .htaccess file that has the following rewriterules.
Options +FollowSymLinks
RewriteEngine On
# Admin
RewriteRule ^admin/([a-zA-Z0-9_]+)$ /admin/index\.php?chapter=$1
RewriteRule ^admin/([0-9]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ /admin/index\.php?id=$1&chapter=$2
RewriteRule ^admin/([0-9]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([a-z]+)$ /admin/index\.php?id=$1&chapter=$2&page=$3&action=$4
RewriteRule ^admin/([0-9]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)/([a-z]+)$ /admin/index\.php?id=$1&chapter=$2&page=$3&subpage=$4&action=$5
# Site
RewriteRule ^home /index\.php?page=home
RewriteRule ^about /index\.php?page=about
RewriteRule ^contact /index\.php?page=contact
RewriteRule ^search /index\.php?page=search
RewriteRule ^names/([a-zA-Z0-9_]+) /index\.php?page=names&name=$1
RewriteRule ^objects/([a-zA-Z0-9_]+) /index\.php?page=objects&id=$1
It all worked flawless on my local server (Apache 2.2.15), but it fails on the server where I had to put the site live (Apache 2.0.63).
The weirdest is, it's not all wrong.
1) The Admin section works good on the live server. I didn't touch it.
2) I originally used and end-anchor in the rewriterules, like this.
RewriteRule ^home$ /index\.php?page=home
But it didn't work. Deleting the '$' made the single-pages work.
3) The pages using 2 variables (the last 2) never worked at all, no matter what I changed (note! They DO work in my local server).
Does anybody have a clue?
Major difference between Apache 2.0.63 and 2.2.15?
Do I miss out on something?
I spend 2 days Googling, but to no avail.
Please help, before I get a nervous breakdown.
Thanks
Herry