Re: URL Rewrite not working for me

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don Don wrote:

> Hi Per,
> changed the rewrite to this
> 
> Options +FollowSymLinks
> RewriteEngine on
> 
> RewriteRule profile/username/(.*) profile.php?username=$1 [r]
> 
> but sill does not work the way i want.  Entering this url
> http://example.com/profiles/profile.php?username=baller  does not
> cnage to http://localhost/profiles/profile/username/baller
> 

Ah, you want it the other way round then.  The rewriterule is:

rewriterule  <frompattern> <to> 


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux