Re: URL Rewrite not working for me
| From: | Daniel Brown | Date: | Fri, 25 Jul 2008 16:32:43 +0000 |
| Subject: | Re: URL Rewrite not working for me | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277321@lists.php.net to get a copy of this message | ||
On Fri, Jul 25, 2008 at 6:00 AM, Don Don <progwihz@yahoo.com> wrote:
> Hi all,
>
> I've set up a url rewrite code below.
>
> Options +FollowSymLinks
> RewriteEngine on
>
> RewriteRule profile/username/(.*) profile.php?username=$1
>
> It only works when I type in this url
> http://www.example.com/profiles/profile/username/baller/
>
> If i do not then the normal url
> http://www.example.com/profiles/profile.php?username=baller is
> displayed.
Per's answer is probably exactly what you're looking for, Don.
Keep in mind, though, that this isn't a PHP question. Future
questions of this nature would be better suited for the Apache list.
You may find sometimes that asking a question on the wrong list will
be ignored. Not because people don't want to help, just because they
may read it and skip over it.
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.