Page 1 of 1

Variables without files (IE: www.something.com/33432)

Posted: Mon May 26, 2003 2:28 am
by s3rg1o
Hey guys, I see some sites out there with links such as

http://www.something.com/34234 where 34234 is the variable but they specify no file or variable name. I know how php.net does their function search with http://www.php.net/substr but that just redirects the page, I want the page to actually load from that variable, anybody know?

Posted: Mon May 26, 2003 3:37 am
by volka
if you do not redirect but include the file you might handle it like php.net does (via ErrorDocument)

Posted: Mon May 26, 2003 11:03 pm
by s3rg1o
got it, thanks

Posted: Fri May 30, 2003 1:21 am
by s3rg1o
Ohhh yeh

I did get it to work with ErrorDocuments

so everything goes to /index.php

that's fine, but I don't want all the errors to do that

for instance, http://www.something.com/images/11112/

I want 11112 to be the varaible, in the directory images, but I want that error to go to /images/index.php rather than /index.php

I attempted using .htaccess 's in both directories, but no luck

any ideas?