[PHP] Re: mod_rewrite from .htaccess

2005-04-13 Thread Dasmeet Singh
Matthew Weier O'Phinney wrote: * Amir Mohammad Saied <[EMAIL PROTECTED]>: I want to use mod_rewrite patterns, but i have not access to the httpd.conf so i think i should use .htaccess, but the patterns don't work properly there, have my admin should set any settings in the httpd.conf? I use mod

[PHP] Re: mod_rewrite from .htaccess

2005-04-12 Thread Matthew Weier O'Phinney
* Amir Mohammad Saied <[EMAIL PROTECTED]>: > I want to use mod_rewrite patterns, but i have not access to the > httpd.conf so i think i should use .htaccess, but the patterns don't > work properly there, have my admin should set any settings in the > httpd.conf? I use mod_rewrite from .htaccess

[PHP] Re: mod_rewrite and getting url variables

2005-04-12 Thread Matthew Weier O'Phinney
* Ospinto <[EMAIL PROTECTED]>: > I used mod_rewrite to change http://www.mysite.com/page/1 to > http://www.mysite.com/page.php?id=1 to enable a search friendly url. > Everything works fine, except that when I try to get the URL variable ($id) > by using $_GET, it doesn't return anything. With > htt

[PHP] Re: mod_rewrite problem

2002-07-18 Thread Sameh Attia
Adrian Murphy wrote: > > Hi, > the following code redirects www.usersite.mysite.biz to >www.mysite.biz/users/sites/usersite > > the problem is when the 'www' is left out it doesn't work. > could someone help me to fix this? > many thanks > > > > > RewriteEngine on > RewriteCond %{HTTP_HO

[PHP] Re: mod_rewrite problem

2002-07-18 Thread CC Zona
In article <003d01c22e58$dcb45240$6601a8c0@yourwrjlo8t8dt>, [EMAIL PROTECTED] (Adrian Murphy) wrote: > the following code redirects www.usersite.mysite.biz to > www.mysite.biz/users/sites/usersite > > the problem is when the 'www' is left out it doesn't work. > RewriteEngine on > RewriteCond

[PHP] Re: mod_rewrite

2002-04-22 Thread Philip Hallstrom
You could also do something like this: Configure Apache so that *every* request on a virtual host would be handled by a single PHP script. ServerName myserver.mydomain.org DocumentRoot /usr/local/www/myserver Action php-parse /path-to/script.php Action php-parse /path-to/script.php SetHan

[PHP] Re: mod_rewrite

2002-04-18 Thread Maxim Maletsky
forget about using .htaccess for mod_rewrite. It often fails through it. Use it directly from httpd.conf Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) www.PHPBeginner.com [EMAIL PROTECTED] [ rswfire ] writes: > .htaccess (returns 500 misconfiguration

[PHP] Re: mod_rewrite

2002-04-18 Thread Maxim Maletsky
Seriousely speaking, I don't think I can create you a working example here because your case might be a whole different one, so you'd better read the docs to get it right. To just give you an idea, here's what I use on PHPBeginner.com: # VHosts: RewriteEngine On RewriteCond

[PHP] Re: mod_rewrite (the solution)

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cc Zona) wrote: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > wrote: > > > RewriteEngine on > > RewriteBase/ > > RewriteRule$.* index.php > > RewriteRule takes a regular expression as its first parameter >

[PHP] Re: mod_rewrite (the solution)

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > RewriteEngine on > RewriteBase/ > RewriteRule$.* index.php RewriteRule takes a regular expression as its first parameter . The "$" regex meta-character is an end-