1
hi there.
There were some hacks and modules that permit you to have nice urls:
Quote:
http://www.mysite.com/modules/myMod/index/65/xoops-is-cool
instead of
http://www.mysite.com/modules/myMod/index.php?newsid=65&msg=xoops-is-cool
To make this you have to use the url rewriting with .htaccess file.
I've discovered that you can do this without that!
Just test this, visit this site:
https://xoops.org/index.phpand now visit this one:
https://xoops.org/index.php/65/xoops-is-coolYou may notice that these are the same page.
In fact, apache is looking at the URL and travels from directories to sub directories etc... if one of those supposed directories is a file then it just open that file and ignore the rest of the URL.
In
https://xoops.org/index.php/65/xoops-is-cool, index.php is an existing file so /65/xoops-is-cool is ignored.
Using this URL format you can get /65/xoops-is-cool using $PHP_SELF variable.
Ciao