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
* 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
* 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 all
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.
snip
RewriteEngine on
RewriteCond
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_HOST}
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.
VirtualHost *:80
ServerName myserver.mydomain.org
DocumentRoot /usr/local/www/myserver
Action php-parse /path-to/script.php
Action php-parse
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
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
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
wrote:
RewriteEngine on
RewriteBase/
RewriteRule$.* index.php
RewriteRule takes a regular expression as its first parameter
http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule.
The $ regex meta-character is an end-of-line
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
10 matches
Mail list logo