Re: [PHP] Asuming query without the ?

2004-06-04 Thread Robert Winter
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 [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 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
 
 

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



[PHP] Asuming query without the ?

2004-06-03 Thread Robert Winter
Is it possible to configure PHP/.htAccess/etc. for assuming a query when the
users enters a path like this:

www.myserver.com/path/154-- assumes
www.myserver.com/path/index.php?code=154

The only thing I could do is avoid writing index.php but I still have to
write the ?: www.myserver.com/path/?154

Any idea?
Thanks.
Gus

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



Re: [PHP] Asuming query without the ?

2004-06-03 Thread John Nichel
Robert Winter wrote:
Is it possible to configure PHP/.htAccess/etc. for assuming a query when the
users enters a path like this:
www.myserver.com/path/154-- assumes
www.myserver.com/path/index.php?code=154
The only thing I could do is avoid writing index.php but I still have to
write the ?: www.myserver.com/path/?154
Any idea?
Thanks.
Gus
mod_rewrite
--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Asuming query without the ?

2004-06-03 Thread Marek Kilimajer
Robert Winter wrote:
Is it possible to configure PHP/.htAccess/etc. for assuming a query when the
users enters a path like this:
www.myserver.com/path/154-- assumes
www.myserver.com/path/index.php?code=154
The only thing I could do is avoid writing index.php but I still have to
write the ?: www.myserver.com/path/?154
Any idea?
Thanks.
Gus
RewriteRule ^/path/([0-9]+)$/path/index.php?code=$1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Asuming query without the ?

2004-06-03 Thread Robert Winter
Where and how do I set this? I'm to Unix and PHP.

Marek Kilimajer [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Robert Winter wrote:
  Is it possible to configure PHP/.htAccess/etc. for assuming a query when
the
  users enters a path like this:
 
  www.myserver.com/path/154-- assumes
  www.myserver.com/path/index.php?code=154
 
  The only thing I could do is avoid writing index.php but I still have to
  write the ?: www.myserver.com/path/?154
 
  Any idea?
  Thanks.
  Gus
 

 RewriteRule ^/path/([0-9]+)$/path/index.php?code=$1

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



Re: [PHP] Asuming query without the ?

2004-06-03 Thread Robert Winter
Where and how do I set this? I'm to Unix and PHP.

John Nichel [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Robert Winter wrote:
  Is it possible to configure PHP/.htAccess/etc. for assuming a query when
the
  users enters a path like this:
 
  www.myserver.com/path/154-- assumes
  www.myserver.com/path/index.php?code=154
 
  The only thing I could do is avoid writing index.php but I still have to
  write the ?: www.myserver.com/path/?154
 
  Any idea?
  Thanks.
  Gus
 

 mod_rewrite

 -- 
 John C. Nichel
 KegWorks.com
 716.856.9675
 [EMAIL PROTECTED]

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



Re: [PHP] Asuming query without the ?

2004-06-03 Thread Daniel Clark
I think it's in the Apache config file.

 Where and how do I set this? I'm to Unix and PHP.

 Marek Kilimajer [EMAIL PROTECTED] escribió en el mensaje
 news:[EMAIL PROTECTED]
 Robert Winter wrote:
  Is it possible to configure PHP/.htAccess/etc. for assuming a query
 when
 the
  users enters a path like this:
 
  www.myserver.com/path/154-- assumes
  www.myserver.com/path/index.php?code=154
 
  The only thing I could do is avoid writing index.php but I still have
 to
  write the ?: www.myserver.com/path/?154
 
  Any idea?
  Thanks.
  Gus
 

 RewriteRule ^/path/([0-9]+)$/path/index.php?code=$1

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



RE: [PHP] Asuming query without the ?

2004-06-03 Thread Chris W. Parker
Robert Winter mailto:[EMAIL PROTECTED]
on Thursday, June 03, 2004 4:31 PM said:

 Where and how do I set this? I'm to Unix and PHP.

just look up mod_rewrite and you'll get some answers.

http://www.engelschall.com/pw/apache/rewriteguide/



chris.

p.s. please don't respond to two different messages with exactly the
same one-word-missing response. it's very annoying. at least for me...
and maybe some others... i can think of one person. but i wont name
names.



NED: Elaine, when my father was black listed he couldn't work for years.
He and his friends used to sit at Hop Sing's every day figuring out how
to survive.

ELAINE: You're father was blacklisted? 

NED: Yes he was, and you know why? Because he was betrayed by people he
trusted. They named names.

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



Re: [PHP] Asuming query without the ?

2004-06-03 Thread Marek Kilimajer
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

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