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

2009-12-01 Thread Kim Emax
Hey John 2009/12/1 John Corry jcorry.li...@gmail.com 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

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

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

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.

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

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

Re: [PHP] mod_rewrite help

2006-05-03 Thread John Nichel
Jay Blanchard wrote: snip [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

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

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 viewing a

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 that

Re: [PHP] mod_rewrite help

2006-05-03 Thread Jochem Maas
lol - I want a robe too :-) blue will be fine. Anthony Ettinger wrote: snip [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.

Re: [PHP] mod_rewrite help

2006-05-03 Thread Jochem Maas
John Nichel wrote: 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. this might help in the calculation: http://www.netsoc.tcd.ie/~allah/backup/cgi-bin/woodchuck.php :-) -- PHP General Mailing

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: snip ... How much wood could a woodchuck chuck if a woodchuck could chuck wood? While viewing a php web site that

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

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

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. Unfortunately, yes... I am

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

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

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 really

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

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: [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 forcing me into

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.

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://

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-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 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

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:

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 for

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

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

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

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 people have

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 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 exact example

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, 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

RE: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Chris W. Parker
Ospinto mailto:[EMAIL PROTECTED] 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

Re: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Matthew Weier O'Phinney
* Chris W. Parker [EMAIL PROTECTED]: Ospinto mailto:[EMAIL PROTECTED] 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,

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 be

RE: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Chris W. Parker
Matthew Weier O'Phinney mailto:[EMAIL PROTECTED] 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:

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

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

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. I

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, just a

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

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_rewrite can

RE: [PHP] mod_rewrite

2001-09-09 Thread Felix
: 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. My subdomains do

RE: [PHP] mod_rewrite

2001-09-09 Thread Matthew Loff
[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 subdomain you want and it reflecst

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 ^(.*)$