Page 1 of 1

I HAVE A SPLITTING HEADACHE

Posted: Wed May 24, 2006 12:37 am
by nowhere903
Well I tried to post and it didn't.
Here I go again.
I have an .htaccess file with the following in it:
RewriteEngine On
Options +Followsymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ /profile.php?reality=$1 [R] ,

What I am trying to do now is to exclude my 'activate.php' file. It seems when you type in http://www.domain.com/activate.php I am redirected to http://www.domain.com/profile.php?reality=activate.php

Any help would be awesome,
I am not too regex savvy obviously.
Thanks,
Jason
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.

Posted: Wed May 24, 2006 7:01 am
by Chris Corbyn
A bit of a longshot but something along the lines of this?

Code: Select all

RewriteEngine On 
Options +Followsymlinks 
RewriteBase / 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^([^/]+)/?$   /profile.php?reality=$1 [R]
RewriteRule ^activate.php   /activate.php
I wish they used PCRE, it would be easy then :(

Posted: Wed May 24, 2006 10:25 am
by nowhere903
That didn't do it. Thanks for the input.
When I get back from work I will play with it and see what is going on.
Thanks,
Jason