Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Peter Vertes
I had the same problem with PHP after I've upgraded to 4.3.3 from 4.3.1. I was tearing my hair out but couldn't figure out what was wrong. I ended up editing my php.ini file and turning REGISTER GLOBALS = On. It works fine now and since this is on my development box I don't really care about

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Ryan A
Hey, Thanks for replying. Globals are on heres my phpinfo page: http://cheap-php-web-hosting.com/phpinfo.php this is my .htaccess file: RewriteEngine On Options +FollowSymlinks RewriteRule ^tt/(.*).php tt.php?id=$1 This is my php page: ?php echo Ok,we are in tt.phpbr;

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Justin French
On Friday, January 16, 2004, at 11:04 AM, Ryan A wrote: RewriteEngine On Options +FollowSymlinks RewriteRule ^tt/(.*).php tt.php?id=$1 This is my php page: ?php echo Ok,we are in tt.phpbr; if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No \$_GET[id]br;} print_r($_GET); print_r($_REQUEST);

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Ryan A
Hey Justin, Ok, tried this with differient tests and directives for the past 2 days, on 3 differient servers, on 5 differient domains. I updated the directives more times than I care to remember and restarted apache so many times I dont think it knows if its coming or goingbut you sir...are

[PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hi, I have a blog kind of app running on my site...presently it shows like this: show.php?category=Beginners%20Cornersid=1id=1 After searching on google on how to make my blog my search engine friendly I came accorss mod_rewrite and couple of tutorials on it, finally the one I understood and

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 11:14, Ryan A wrote: Hi, I have a blog kind of app running on my site...presently it shows like this: show.php?category=Beginners%20Cornersid=1id=1 After searching on google on how to make my blog my search engine friendly I came accorss mod_rewrite and couple of

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Thanks for replying. It seems to be partly working. /* How isn't it working? What happens? I would try one variable first, get that working, then add the others. Also, I am not sure how it will handle the space in Beginners Corner. Try passing simple values first. */ Its a bit hard to

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 02:44, Ryan A wrote: It seems to be partly working. /* How isn't it working? What happens? I would try one variable first, get that working, then add the others. Also, I am not sure how it will handle the space in Beginners Corner. Try passing simple values

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 11:44, Ryan A wrote: [snip] Its a bit hard to explain what happens so see for yourself: Heres the index page: http://www.rizkhan.net/articles/articles.php Heres the actual page: http://www.rizkhan.net/articles/show.php?category=Beginners%20Cornersid=1id=1 and then if

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Lowell Allen
On Thursday 15 January 2004 02:44, Ryan A wrote: It seems to be partly working. /* How isn't it working? What happens? I would try one variable first, get that working, then add the others. Also, I am not sure how it will handle the space in Beginners Corner. Try passing simple values

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey Jason, Brad, Thanks for replying. I took out the .php part...and even tried it with [L] tacked to the end of the second linenot working Heres how my .htaccess looks now: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetrysid=$2id=$3 I even took out the space

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 12:41, Ryan A wrote: Hey Jason, Brad, Thanks for replying. I took out the .php part...and even tried it with [L] tacked to the end of the second linenot working Heres how my .htaccess looks now: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*)

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Lowell Allen
[snip] I took out the .php part...and even tried it with [L] tacked to the end of the second linenot working Heres how my .htaccess looks now: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetrysid=$2id=$3 I even took out the space which was in category.

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Ok, have added echo Ok,we are in show.php; and if you go to http://rizkhan.net/articles/show/category/1/2 or http://rizkhan.net/articles/show.php?category=poetrysid=1id=2 you will see that its echoing that without a problem..so this is partly working. now what to do about the

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 13:14, Ryan A wrote: Hey, Ok, have added echo Ok,we are in show.php; and if you go to http://rizkhan.net/articles/show/category/1/2 or http://rizkhan.net/articles/show.php?category=poetrysid=1id=2 you will see that its echoing that without a problem..so this is

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, I put this in for testing: if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No \$_GET[id]br;} if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No \$_GET[sid]br;} and heres the output: No $_GET[id] No $_GET[sid] So the variables are not being passed Any idea why and what I

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 05:01, Ryan A wrote: I put this in for testing: if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No \$_GET[id]br;} if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No \$_GET[sid]br;} and heres the output: No $_GET[id] No $_GET[sid] So the

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Oops sorry, missed that. Heres whats on top of the page: echo Ok,we are in show.phpbr; if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No \$_GET[id]br;} if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No \$_GET[sid]br;} print_r($_GET); print_r($_GET['id']); print_r($_GET['sid']);

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 15:11, Ryan A wrote: [snip] and heres the output: Ok,we are in show.php No $_GET[id] No $_GET[sid] Array ( ) Ideas? Seems like you are getting closer. You are going to the right place, but none of your variables are making it. I am not sure what your rule looks

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, At least you remember what it used to look like, I dont! Soo many modificatios in both .htaccess and httpd.conf and restarts...have just lost track. Will try your example one at a time and see what happens. Thanks again. Cheers, -Ryan Seems like you are getting closer. You are going to

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Matt Matijevich
I am a little late but I have used the method described on a list apart http://www.alistapart.com/articles/succeed/ and it works really well. You might want to give it a try, I think it works a little bit different than the way you are trying. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hi again, I did a little pokeing around and installed this on 3 differient serversand the results were identical... so its not the servers fault but something with the directives... got some interesting results with my testing am using this: echo Ok,we are in show.phpbr;

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Justin Patrin
RewriteEngine On RewriteRule ^show/(.*)/(.*) /show.php?sid=$1id=$2 Try: RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1id=$2 -- paperCrane Justin Patrin -- Question Everything, Reject Nothing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Thanks for replying. Nope, does not work. Looks like I got a problem that finally stumped the whole listlucky me :-p Cheers, -Ryan On 1/15/2004 2:28:33 AM, Justin Patrin ([EMAIL PROTECTED]) wrote: RewriteEngine On RewriteRule ^show/(.*)/(.*) /show.php?sid=$1id=$2 Try:

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 09:28, Justin Patrin wrote: RewriteEngine On RewriteRule ^show/(.*)/(.*) /show.php?sid=$1id=$2 Try: RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1id=$2 The original ought to work just fine -- I have it working here. -- Jason Wong - Gremlins Associates -

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 09:42, Ryan A wrote: Nope, does not work. Looks like I got a problem that finally stumped the whole listlucky me This works fine for me: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?a=$1b=$2c=$3 What version of Apache/PHP are you using?