.htaccess redirection problem

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

.htaccess redirection problem

Post 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
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: .htaccess redirection problem

Post 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.
Post Reply