Forum Moderators: phranque
Into this:
[somesite.com...]
This is accomplished partly in PHP using $PATH_INFO, to assign the "foldernames" (123/234/345) into an array:
$path_array = explode("/",$PATH_INFO);
This gets you some of the way, now the URL looks like:
[somesite.com...]
To get rid of the ".php" part you use a .htaccess file. And have mod_rewrite on the Apache server. This file should have permissions of the fie set to something like 777 and contain this:
<Files index>
ForceType application/x-httpd-php
</Files>
also tried:
DirectoryIndex index.php index
<Files index>
forcetype application/x-httpd-php
</Files>
It worked just fine, when I did it on a Windows box. But I moved to Mac now, and it doesn't. And the same goes with Linux. Running Apache 2.0.54 og Mac and 1.33 on Linux. I get an Apache error, on both systems:
500 Internal Server Error
I looked in the Apache error log and it said that <Files> in the .htaccess file wasn't closed. But I have closed it with </Files>. Everything should bee allright, but isn't
Any Ideas anyone?
Once Rewrite is working, just delete the path info line from your scripts. You can do a mass FIND-REPLACE through Perl if you have many scripts with that path info code.
My 2 cents.