MinuteMan
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by MinuteMan
-
-
Nowadays, I see many sites using the following navigation: http://example.com/articles/PHP/1/I know that these are not directories but extensionless files, and I need to know how they are made.My root folder is htdocs/. I have an index (no extension) file, which contains PHP codes.I've typed in my .htaccess the following:
DefaultType application/x-httpd-phpForceType application/x-httpd-php
So far, so good. I can open /index w/o problems.But when I try to open /index/ it parses it like a directory..I hope you can tell me where is my mistake, so I can open /index/ as the index file.PS:It's 2:00 AM, I want to go to bed and I know my English is bad. I can explain more detailed tomorrow, if you don't understand.
-
Hello buddies!I'm learning PHP right now.I already know how to make a page like "index.php?page=news", but I want to make, for example, category in the news page: "&cat=1".I experimented with some codes but couldn't make them work ... Thank you in advance.
Extensionless files
in PHP
Posted
Thank you for the answer.I googled about mod_rewrite and read some very interesting tutorials and guides.I think I got it - in my .htaccess file I have:
This will open http://mydomain.com/index and http://mydomain.com/index/ as the index.php file.I use a stylesheet in index.php.When I go to http://mydomain.com/index/ it doesn't parse the stylesheet and my page is shown without any styles.Maybe I am very close to it, but just don't have an idea how to do it.