|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I'm a newbie to mod_rewrite and .htaccess, but not PHP and MySQL. I'm creating a website in PHP for a client, and they wish to have what they call 'friendly-URLs'. So naturally I'm using the mod-rewrite module and .htaccess. My .htaccess lines of code are as follows: RewriteRule ^/?$ index.php [L] RewriteRule ^login/?$ login.php [L] etc. However, I'm also building a CMS which the user can use to create pages on the site. Each of these pages is stored in the database: the data stored for each page is pageid (auto increment), title, url, content etc. URL is used so the user can specify what the page is called, so in the browser it will appear as www.example.com/newpage However, how do I set my .htaccess file up so if the user clicks the link of one of the generated pages (called about-us) for example, it redirects to index.php for example? index.php would then call to the database for the content of the about-us' page. Any help will be appreciated! Willo Last edited by weegillis; 09-04-2009 at 09:24 PM. Reason: Help member to display intended generic url |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rewrite URLs with HT Access | pagetta | Web Programming Discussion Forum | 12 | 09-06-2007 02:01 AM |
| Redirecting database generated pages from within .htaccess | LoveNotWar | Web Programming Discussion Forum | 4 | 01-04-2007 02:01 AM |
| Database generated dropdown menu | supernatural_247 | Web Programming Discussion Forum | 3 | 05-26-2005 09:40 PM |
| Ads generated on a PHP generated page? | Kris@NP.com | Google AdWords/Google AdSense | 6 | 08-19-2004 08:00 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |