To whom it may concern:
I figured out an easy way to do this...
A good way to make simple urls,
containing variables,
without the ?'s and &'s,
and without the .php file extension!
Just make a .htaccess file in the directory the file will be in,
and put into the .htaccess file:
<Files FILENAMEHERE>
ForceType application/x-httpd-php
</Files>
Make a test file named FILENAMEHERE without any extension,
and create/upload the files.
Then you can use:
http://www.domain.com/FILENAMEHERE
instead of:
http://www.domain.com/FILENAMEHERE.php
It's that simple using .htaccess files! 🙂
Then you can get the variables from the url:
http://www.domain.com/FILENAMEHERE/var1/var2
by using the php function explode()
to explode the $PATH_INFO or $REQUEST_URI
But you must have
AcceptPathInfo On
between your
<Directory /></Directory>
tags in your
/etc/httpd/conf/httpd.conf
to enable apache's backwards lookup feature!
Hope it helps somebody if they need it!
🙂
Any comments are welcome.