Using apache mod rewrite with GBook

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
AdRock
Posts: 19
Joined: Sun Aug 20, 2006 11:50 pm

Using apache mod rewrite with GBook

Post by AdRock »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:


I have rewritten urls to make them eaiser to read and search engine friendly but have come across some problems

The first problem I'm having is with these links

gbook.php?page=1 written to guestbook/1

when i click on the links to move thorugh the pagination, i get an message saying the page doesn't exist

The other problem is with

gbook.php?a=sign&num=1 written to guestbook/sign/1

The link works and i'm taken to the right page but i have no CSS stylesheet loaded

here is my rewrite rules (ignore that i have names them guestbook. They are in a folder called guestbook)
RewriteRule ^guestbook/([0-9]+)/?$ guestbook/gbook.php?pagenum=$1 [L]
RewriteRule ^guestbook/([a-zA-Z]+)/?$ guestbook/gbook.php?a=$1 [L]
RewriteRule ^guestbook/([a-zA-Z]+)/([0-9]+)/?$ guestbook/gbook.php?a=$1&num=$2 [L]
Post Reply