On Aug 28, 2008, at 9:21 AM, Krist van Besien wrote:

On Thu, Aug 28, 2008 at 14:41, Jason Pruim <[EMAIL PROTECTED]> wrote:

What I want to do is to rewrite this url:
HTTP://www.raoset.com/purl/customer/index.php?purl=jasonpruim112

To something more like:

HTTP://www.raoset.com/jasonpruim112

In what direction do you want the rewrite? Do you want:

1) Browser sends HTTP://www.raoset.com/jasonpruim112 and you want your
server to answer with the content at
HTTP://www.raoset.com/purl/customer/index.php?purl=jasonpruim112

or
2) Browser sends
HTTP://www.raoset.com/purl/customer/index.php?purl=jasonpruim112 and
you want your server to answer with the content at
HTTP://www.raoset.com/jasonpruim112

For case 1) you could do something like:

RewriteRule  /(.*)       /purl/customer/index.php?purl=$1


Hi Krist,

It is case 1 that I want. I want people to be able to type in: HTTP://www.raoset.com/jasonpruim112 and have my script at: HTTP://www.raoset.com/purl/purl.php?purl=jasonpruim112 take over control.

I tried the rewrite rule you supplied in a .htaccess file with no luck...

To make things more simple since I'm starting as a baby in mod_rewrite I have setup this .htaccess file on the root of the website:

Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteRule ^index.rewrite$ thankyou.html [L]

But no luck... index.rewrite page does not exist, but thankyou.html does.

Also, I don't know if it makes a difference, but I have been restarting apache after each change but with success.

mod_rewrite is enabled in my http conf file. but I haven't been able to get any redirects to work yet...Would seeing my httd conf file help at all?

Thanks again for your help on this!


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
[EMAIL PROTECTED]





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to