Re: [PHP] mod_rewrite...https index page -> http index page

2009-12-01 Thread Kim Emax
Hey John 2009/12/1 John Corry > My apologies, this is not strictly PHP...but it is relevant to a great > number of PHP application frameworks that many of us use or will use. > Well, still, you should ask in an apache forum :-) I have a Magento installation that relies heavily on mod_rewrite.

Re: [PHP] mod_rewrite help

2006-05-04 Thread John Nichel
John Wells wrote: On 5/3/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [aha moment] I finally get it. PHP developers are the smartest people on the planet and therefore we know and use everything. JavaScript, Java, C++, SQL, network management, Apache internals, women and even PHP. That is why pe

Re: [PHP] mod_rewrite help

2006-05-04 Thread John Wells
On 5/3/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [aha moment] I finally get it. PHP developers are the smartest people on the planet and therefore we know and use everything. JavaScript, Java, C++, SQL, network management, Apache internals, women and even PHP. That is why people come on this l

Re: [PHP] mod_rewrite help

2006-05-03 Thread Stephen Lake
BOL Now I wish I hadn't slept through Math Class in school "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John Nichel wrote: >> Jay Blanchard wrote: >> >> > > ... > >> >> How much wood could a woodchuck chuck if a woodchuck could chuck wood? >> >> While viewing a php

Re: [PHP] mod_rewrite help

2006-05-03 Thread Jochem Maas
John Nichel wrote: Jay Blanchard wrote: ... How much wood could a woodchuck chuck if a woodchuck could chuck wood? While viewing a php web site that is. this might help in the calculation: http://www.netsoc.tcd.ie/~allah/backup/cgi-bin/woodchuck.php :-) -- PHP General Mailing List (h

Re: [PHP] mod_rewrite help

2006-05-03 Thread Jochem Maas
lol - I want a robe too :-) blue will be fine. Anthony Ettinger wrote: [aha moment] I finally get it. PHP developers are the smartest people on the planet and therefore we know and use everything. JavaScript, Java, C++, SQL, network management, Apache internals, women and even PHP. That i

RE: [PHP] mod_rewrite help

2006-05-03 Thread Jay Blanchard
[snip] > [snip] > How much wood could a woodchuck chuck if a woodchuck could chuck wood? > > While viewing a php web site that is. > [/snip] > > If a woodchuck could chuck wood he (or she) would chuck as much wood as > he (or she) could chuck while viewing a php web site. H, I dunno if it's

RE: [PHP] mod_rewrite help

2006-05-03 Thread Robert Cummings
On Wed, 2006-05-03 at 15:36, Jay Blanchard wrote: > [snip] > How much wood could a woodchuck chuck if a woodchuck could chuck wood? > > While viewing a php web site that is. > [/snip] > > If a woodchuck could chuck wood he (or she) would chuck as much wood as > he (or she) could chuck while viewi

RE: [PHP] mod_rewrite help

2006-05-03 Thread Jay Blanchard
[snip] How much wood could a woodchuck chuck if a woodchuck could chuck wood? While viewing a php web site that is. [/snip] If a woodchuck could chuck wood he (or she) would chuck as much wood as he (or she) could chuck while viewing a php web site. Told you. -- PHP General Mailing List (http:

Re: [PHP] mod_rewrite help

2006-05-03 Thread John Nichel
Jay Blanchard wrote: [aha moment] I finally get it. PHP developers are the smartest people on the planet and therefore we know and use everything. JavaScript, Java, C++, SQL, network management, Apache internals, women and even PHP. That is why people come on this list to ask questions totally u

Re: [PHP] mod_rewrite help

2006-05-03 Thread Anthony Ettinger
On 5/3/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] I am trying to create a simply rule so that when someone goes to: mysite.com/users/1 They are redirected to: mysite.com/users/index.php?uid=1 But am a bit lost looking through all the docs. I know people do this all the time so am lo

RE: [PHP] mod_rewrite help

2006-05-03 Thread Jay Blanchard
[snip] I am trying to create a simply rule so that when someone goes to: mysite.com/users/1 They are redirected to: mysite.com/users/index.php?uid=1 But am a bit lost looking through all the docs. I know people do this all the time so am looking for some help. [/snip] mod_rewrite: A Beginner'

Re: [PHP] mod_rewrite help

2006-05-03 Thread John Nichel
blackwater dev wrote: Hello all, I am trying to create a simply rule so that when someone goes to: mysite.com/users/1 They are redirected to: mysite.com/users/index.php?uid=1 But am a bit lost looking through all the docs. I know people do this all the time so am looking for some help. h

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Micky Hulse
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Abandon Outlook and use Eudora, or Pegasus, or webmail, or ANYTHING > other than Outlook? :-) LOL! Yeah, I do not know what I was thinking in the first place... Eudora sounds good to me. :D Cheers, Micky -- PHP Gen

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Richard Lynch
On Mon, April 10, 2006 7:08 pm, Micky Hulse wrote: >> Doing it on only the URLs *you* think of typing doesn't count. >> Those >> pesky real users can come up with some really interesting URLs to >> type... :-) > > Lol, I was thinking that might be a problem. > > Thanks for all the great tips, I rea

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Micky Hulse
Hi Richard, > Doing it on only the URLs *you* think of typing doesn't count. Those > pesky real users can come up with some really interesting URLs to > type... :-) Lol, I was thinking that might be a problem. Thanks for all the great tips, I really appreicate your help. Great info... I am loo

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Micky Hulse
> -Original Message- > From: Joe Wollard [mailto:[EMAIL PROTECTED] > I'm not an expert on the topic by any stretch of the > imagination, but I seem to recall reading that it's best to > move everything into httpd.conf for performance reasons. You > may want to investigate that, but oth

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Richard Lynch
On Mon, April 10, 2006 12:50 am, Micky Hulse wrote: >> -Original Message- >> From: Chris [mailto:[EMAIL PROTECTED] >> Do you need to do it with a mod_rewrite? >> >> if not, you can do it easily in php: >> >> header('location: folder/file.php'); >> exit(); >> >> in index.php. > > > Unfortuna

Re: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Joe Wollard
Mickey, I'm not an expert on the topic by any stretch of the imagination, but I seem to recall reading that it's best to move everything into httpd.conf for performance reasons. You may want to investigate that, but otherwise I don't see anything wrong with what you're doing. On 4/10/06, Micky H

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Micky Hulse
Well, I added this to the end of my .htaccess: # Set the index page: RedirectMatch ^/$ http://mydomain.com/folder/folder/index.php Seems to work well, but I am still concerned about pitfalls/optimization/consolidation... er, perfection? ;) TIA, Cheers, Micky -- PHP General Mailing List (http:/

RE: [PHP] mod_rewrite q's: syntax?

2006-04-09 Thread Micky Hulse
> -Original Message- > From: Chris [mailto:[EMAIL PROTECTED] > Do you need to do it with a mod_rewrite? > > if not, you can do it easily in php: > > header('location: folder/file.php'); > exit(); > > in index.php. Unfortunately, yes... I am using a CMS, and my current setup is forcin

Re: [PHP] mod_rewrite q's: syntax?

2006-04-09 Thread Chris
Micky Hulse wrote: Hi all... sorry if this is OT for PHP list... Maybe a reply off-list? I just wanted to share my .htaccess file in the hopes that I can hone/fool-proof-a-tize it as much as possible via your feedback and suggestions. Here is what I got so far... I start by turning-on error re

Re: [PHP] mod_rewrite and include paths

2005-11-21 Thread Marcus Bointon
I found the source of my mod_rewrite problems. I was doing everything right to start with - The odd behaviour was due to a PHP bug (http:// bugs.php.net/bug.php?id=35059) that's fixed in 4.4.2-dev and 5.1.0RC7- dev (I'd assume 5.0.x as well). Recompiling with a new checkout works fine. Marc

Re: [PHP] mod_rewrite and include paths

2005-11-14 Thread Marcus Bointon
On 14 Nov 2005, at 18:51, Richard Lynch wrote: include_path("/full/path/to/DocumentRoot:" . include_path()); This may not be the right syntax/function to set include_path, but it is a dynamic way to set the include path, from within PHP. Yup, I tried this and it kind-of works, but still leads

Re: [PHP] mod_rewrite and include paths

2005-11-14 Thread Richard Lynch
On Sun, November 13, 2005 4:05 pm, Marcus Bointon wrote: > This seems like a simple problem... Maybe there should be a simple solution... :-) > I have a rewrite like this: > > RewriteRule ^x/([0-9]+) x.php?x=$1 [PT,L] > > This maps a url like http://www.example.com/x/123 to http:// > www.example.

Re: [PHP] mod_rewrite and include paths

2005-11-13 Thread Marcus Bointon
On 13 Nov 2005, at 22:15, Marco Kaiser wrote: try to use realpath, dirname and other related funktion to resolv the real path. dirname(__FILE__) ? Good point (you can tell I've been up too long). I've just had a play with that - I appended the current path to my include_path, but it see

Re: [PHP] mod_rewrite and include paths

2005-11-13 Thread Marco Kaiser
Hi Marcus, try to use realpath, dirname and other related funktion to resolv the real path. dirname(__FILE__) ? -- Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-11 Thread Marcus Bointon
On 10 Nov 2005, at 21:36, Richard Lynch wrote: On Wed, November 9, 2005 10:36 pm, Dan Rossi wrote: RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/(.+\.(video))$ ../../phpscript.php I should think all those .* should be .+ instead... I mean, if somebody surfs to this URL: http://example.com//exam

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Curt Zirzow
On Fri, Nov 11, 2005 at 01:27:32PM +1100, Dan Rossi wrote: > > On 11/11/2005, at 1:21 PM, Curt Zirzow wrote: > > >> > > > >Of course i dont get what your trying to do, the rewriterule > >doesn't match your description of what you said. > > Ok i am vague at most times, i wasnt going to give an ex

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Dan Rossi
On 11/11/2005, at 1:21 PM, Curt Zirzow wrote: Of course i dont get what your trying to do, the rewriterule doesn't match your description of what you said. Ok i am vague at most times, i wasnt going to give an exact example as it will give away some of the systems secret and not so good

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Curt Zirzow
On Thu, Nov 10, 2005 at 06:10:50PM +1100, Dan Rossi wrote: > > On 10/11/2005, at 4:18 PM, Curt Zirzow wrote: > > >On Thu, Nov 10, 2005 at 03:36:07PM +1100, Dan Rossi wrote: > >>Hi there, ive been having issues with mod_rewrite and apache2 with PHP > >>5.1RC1. I have googled the php bugs and peopl

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Dan Rossi
On 11/11/2005, at 8:53 AM, Max Belushkin wrote: I've been having a problem with PHP 4.4.1 and mod_rewrite, which, as Geert Booster kindly pointed out, has been reported on http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/ 027038.html, which also has a link to the PHP bug report

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Dan Rossi
On 11/11/2005, at 8:36 AM, Richard Lynch wrote: On Wed, November 9, 2005 10:36 pm, Dan Rossi wrote: Hi there, ive been having issues with mod_rewrite and apache2 with PHP 5.1RC1. I have googled the php bugs and people have been experiencing the same issue however the php people cant see to rep

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Max Belushkin
I've been having a problem with PHP 4.4.1 and mod_rewrite, which, as Geert Booster kindly pointed out, has been reported on http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/027038.html, which also has a link to the PHP bug report in the thread. Not sure if this is relevant to PHP5

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Richard Lynch
On Wed, November 9, 2005 10:36 pm, Dan Rossi wrote: > Hi there, ive been having issues with mod_rewrite and apache2 with PHP > 5.1RC1. I have googled the php bugs and people have been experiencing > the same issue however the php people cant see to reproduce the bug. > Its most definately doing it

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-09 Thread Dan Rossi
On 10/11/2005, at 4:18 PM, Curt Zirzow wrote: On Thu, Nov 10, 2005 at 03:36:07PM +1100, Dan Rossi wrote: Hi there, ive been having issues with mod_rewrite and apache2 with PHP 5.1RC1. I have googled the php bugs and people have been experiencing the same issue however the php people cant see t

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-09 Thread Curt Zirzow
On Thu, Nov 10, 2005 at 03:36:07PM +1100, Dan Rossi wrote: > Hi there, ive been having issues with mod_rewrite and apache2 with PHP > 5.1RC1. I have googled the php bugs and people have been experiencing > the same issue however the php people cant see to reproduce the bug. > Its most definately

RE: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Chris W. Parker
Matthew Weier O'Phinney on Tuesday, April 12, 2005 9:42 AM said: > When using mod_rewrite, if the rewrite rule does not include a > pass-through, then the query string is not passed on to the script in > question. So, if you request the page directly with: > > h

Re: [PHP] mod_rewrite from .htaccess

2005-04-12 Thread Greg Donald
On 4/12/05, Amir Mohammad Saied <[EMAIL PROTECTED]> wrote: > 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? AllowOverrides must

Re: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Matthew Weier O'Phinney
* Chris W. Parker <[EMAIL PROTECTED]>: > Ospinto > on Tuesday, April 12, 2005 10:32 AM said: > >> 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. > > Ok I'm with you. > >> Everything

RE: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Chris W. Parker
Ospinto on Tuesday, April 12, 2005 10:32 AM said: > 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. Ok I'm with you. > Everything works fine, except that when I try to get the URL v

RE: [PHP] mod_rewrite

2004-07-01 Thread David Bevan
Hi Pete, Check out the documentation on the Apache site: http://httpd.apache.org/docs-2.1/mod/mod_rewrite.html They also have a URL Rewriting Guide: http://httpd.apache.org/docs-2.1/misc/rewriteguide.html Hope this helps. Regards, David -Original Message- From: pete M [mailto:[EMA

RE: [PHP] mod_rewrite[Scanned]

2004-07-01 Thread Michael Egan
Pete, There was a thread some time ago on the issue of cloaking URLs in which a couple of contributors pointed to tutorials on the following site: http://www.alistapart.com/articles/urls/ HTH, Michael Egan -Original Message- From: pete M [mailto:[EMAIL PROTECTED] Sent: 01 July 2004 14

Re: [PHP] mod_rewrite Issues

2004-06-19 Thread Michal Migurski
> This isn't exactly a PHP issue, but they seem to go rather hand in > hand... > > Right now I'm just running my own apache server on my computer and I'm > trying to protect my scripts using mod_rewrite. I uncommented all the > mod_rewrite lines in the apache configuration file and restarted it all

Re: [PHP] mod_rewrite rules for the php.net rewritten urls

2003-06-07 Thread Philip Olson
On Sat, 7 Jun 2003, Tularis wrote: > I was wondering where I could get the rewrite urls for the rewriting of > urls like here on php.net. > > - Tularis > > P.S. I don't think they're in the phpweb on CVS, I checked that already What you see in phpweb is what you get, there is no mod_rewrite, j

RE: [PHP] mod_rewrite

2001-09-09 Thread Matthew Loff
Message- From: Felix [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 09, 2001 1:38 PM To: [EMAIL PROTECTED]; 'Matthew Loff' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] mod_rewrite How about http://wasarrested.com? IO don't know how they do it, but you can enter whatever subd

RE: [PHP] mod_rewrite

2001-09-09 Thread Felix
Sent: Sunday, September 09, 2001 2:43 PM To: Matthew Loff Cc: [EMAIL PROTECTED] Subject: RE: [PHP] mod_rewrite > > Subdomains are first a DNS issue... The first place you have to go is > your DNS config, since users.body-builders.org wouldn't exist without > an A or CNAME record

RE: [PHP] mod_rewrite

2001-09-09 Thread BRACK
> > Subdomains are first a DNS issue... The first place you have to go is > your DNS config, since users.body-builders.org wouldn't exist without > an A or CNAME record. My subdomains do not have DNSs =(( and I'm not sure if I can change this issue with .htaccess > > I don't know if mod_rewrit

RE: [PHP] mod_rewrite

2001-09-09 Thread Matthew Loff
Subdomains are first a DNS issue... The first place you have to go is your DNS config, since users.body-builders.org wouldn't exist without an A or CNAME record. I don't know if mod_rewrite can do anything about the subdomains like that, if it can't, you will have to add VirtualHost directives

Re: [PHP] mod_rewrite starts driving me crazy ...

2001-02-11 Thread Richard Lynch
> This works perfectly, however what I really need to do is to make it work > not only with /index.html but with everything typed in your browser... > (index.html was only a test to let me know I am in a right direction) > > I tried: > > RewriteRule ^(.*) /start.php?go=$1 > RewriteRule ^(.*)$