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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.