Hi Everyone,

I know it's not a php question... But I know alot of you use rewrite rules and regular expressions and so I thought maybe you would be able to help me.

The site: HTTP://purl.raoset.com/test112

test112 doesn't exist.. It's driven by the database using this rewrite rule:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /p.php [L]

Now, on that site I have a few links... right now the likes are in the format of:
HTTP://purl.raoset.com/design.php?purl=test112

What I would like is to have it read:
HTTP://purl.raoset.com/test112/design

completing the total look of the site :)

I tried to modify this rewrite rule I found on the web:
RewriteRule ^(.+)\.pdf$  /cgi-bin/pdf-script.php?file=$1.pdf [L,NC,QSA]

But no joy... What I had was:
RewriteRule ^design /design.php?purl=$1 [L]

Any pointers? I'm still trying to grasp the regex ideas and get used to that and I think that may be what my main issue is right now.

Any one who can figure it out has a beverage of their choice waiting for them as long as they come to where I am! :)


--
Jason Pruim
japr...@raoset.com
616.399.2355



Reply via email to