Jump to content

seo friendly urls / static urls


herghost

Recommended Posts

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

Link to comment
Share on other sites

.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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.