FuzzyLogik Posted December 12, 2006 Share Posted December 12, 2006 I would like to set up my page to be able to be used like this:http://www.mysite.com/thisorhttp://www.mysite.com/that(without creating separate folders for each and making an index file )I am using apache, so if I have to use .htaccess, I can. Link to comment https://forums.phpfreaks.com/topic/30317-setup-like-phpnetthis/ Share on other sites More sharing options...
boo_lolly Posted December 22, 2006 Share Posted December 22, 2006 you know i have NO idea how they do this but i think it's really cool and i'd definitely like to have it on my sites. as an alternative search feature, ya know? i hope someone knows. Link to comment https://forums.phpfreaks.com/topic/30317-setup-like-phpnetthis/#findComment-146594 Share on other sites More sharing options...
steelmanronald06 Posted December 24, 2006 Share Posted December 24, 2006 First off, boo_lolly, please don't post posts like that. It is considered spam. Secondly, you will need a mysql database.First, you store the page in a database. I would have a database layout like so:Table: pagesidpage_titlepage_contentcreated_bydate_createddate_modifiedThen you have code that inserts the pages into the database, and a place to edit each page. I won't go into that, because it is PHP and not mod_rewrite.Then index.php should do something like, index.php?id=$pageid where $pageid is the id of the page in the table you just created. Then index.php will run the query to extract all the information, and display it. Again, PHP, so I won't go into it here.Now for the mod_rewrite. http://www.sitepoint.com/article/guide-url-rewriting That will teach you a whole lot on mod_rewrite. Link to comment https://forums.phpfreaks.com/topic/30317-setup-like-phpnetthis/#findComment-147361 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.