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
https://forums.phpfreaks.com/topic/214127-seo-friendly-urls-static-urls/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.