folder/485 not folder/?id=485
Moderator: General Moderators
folder/485 not folder/?id=485
I'm looking for something that will allow the id=485 translate into a folder lookalike in the address bar.
In example, I've got a post #930. Normally, we'd use "/ReadPost.php?id=930", but I want "/930" instead. deviantArt uses this for their forum, and I'm wondering how they accomplished this.
In example, I've got a post #930. Normally, we'd use "/ReadPost.php?id=930", but I want "/930" instead. deviantArt uses this for their forum, and I'm wondering how they accomplished this.
for apache: if a handler is found everthing after is passed to this handler.
create a new directory (e.g. test)and place a .htaccess and a file called script in it.
content of .htaccesscontent of scriptnow call this script e.g. by http://a.ho.st/test/script/something123
Providers can disable this option, so it might not work.
create a new directory (e.g. test)and place a .htaccess and a file called script in it.
content of .htaccess
Code: Select all
ForceType application/x-httpd-phpCode: Select all
<html><body>
<table>
<?php
$n = array('QUERY_STRING', 'REQUEST_URI', 'SCRIPT_NAME', 'PATH_INFO', 'PATH_TRANSLATED', 'PHP_SELF');
foreach($n as $e)
echo '<tr><td>', $e, '</td><td>', $_SERVER[$e], '</td></tr>';
?>
</table>
</body></html>Providers can disable this option, so it might not work.
Did you try mod_rewrite? most web hosts have that..
http://www.webmasterbase.com/article/910
something like
http://www.webmasterbase.com/article/910
something like
Code: Select all
RewriteEngine On
RewriteRule /myforum/(*) /index.php?thepath=$1- EvilWalrus
- Site Admin
- Posts: 209
- Joined: Thu Apr 18, 2002 3:21 pm
- Location: Springmont, PA USA
-
superwormy
- Forum Commoner
- Posts: 67
- Joined: Fri Oct 04, 2002 9:25 am
- Location: CT
