herghost Posted September 22, 2010 Share Posted September 22, 2010 Hi all, I am looking a developing a script that instead of using something like mysite.com/showproduct.php?id=1 I would like it to appear as mysite.com/php-editor Is their a simple way of doing this? I would still need to pull info from a database so the page would still need to be dynamic, I just want it to appear static! I am used to using the get id function of php, what would the workaround be? would the id be hidden from the url but still usable in a query? I have had a look at the apache mod_rewrite, but quite frankly, I dont understand it! Cheers Quote Link to comment Share on other sites More sharing options...
petroz Posted September 22, 2010 Share Posted September 22, 2010 This isnt the answer your looking for, but CodeIgniter makes that really easy. Quote Link to comment Share on other sites More sharing options...
rwwd Posted September 22, 2010 Share Posted September 22, 2010 .htaccess -> mod rewrite, this is the engine that makes 'friendly urls' and it is an apache module that needs to be enabled, this will then covert the requested a href value into the page request that you asked for. Google "mod rewrite", I'm sure there is a forum on apache somewhere on here Rw 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.