Page 1 of 1

.htaccess redirection problem

Posted: Sat Mar 20, 2010 3:21 am
by azhan
Hey guys,

Previously I set my .htaccess to redirect my users to view their profile easier like this

http://www.domain.com/john

which actually it redirect to profile.php page but still displaying http://www.domain.com/john on url area

Now, Im try installing OpenX software which I put the folder under public_html. But guess what, when i try to install the software/opensource to my server it doesnt work. I guess it interferes with the profile redirection.

Every time i want to install/open the OpenX folder like this, http://www.domain.com/OpenX it redirect to profile.php

How do I fix this??

below is my .htaccess code

---------------------------
RewriteEngine On
RewriteRule ^([A-Za-z0-9]+)$ profile.php?username=$1
---------------------------

Thanks
Azhan

Re: .htaccess redirection problem

Posted: Sat Mar 20, 2010 3:04 pm
by JakeJ
I'm not an expert on mod_rewrite, but I'd say if you make a rule for OpenX FIRST, it will direct to the right place.