Re: Asuming query without the ?
| From: | Robert Winter | Date: | Fri, 04 Jun 2004 16:49:37 +0000 |
| Subject: | Re: Asuming query without the ? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187646@lists.php.net to get a copy of this message | ||
I can't make it work. Because I'm new to .htaccess I tried some examples
from apache.org:
1) Contents of .htaccess in http://mysite.com/path
RewriteEngine On
RewriteRule ^oldstuff\.html$ newstuff.html
THIS EXAMPLE WORK, but the next one doesn't, nor the rule you told me:
2)
RewriteEngine On
RewriteRule ^localpath(.*)$ http://www.google.com$1
Thanks again!
"Marek Kilimajer" <lists@kilimajer.net> escribió en el mensaje
news:40BFBD72.6050300@kilimajer.net...
> Robert Winter wrote:
> > Where and how do I set this? I'm to Unix and PHP.
> >
>
> in .htaccess file
>
> >>
> >>RewriteRule ^/path/([0-9]+)$ /path/index.php?code=$1
> >
> >