Sami
Sami

Reputation: 477

Implementing slash in links like: example.com/parameter

I am trying to create links like example.com/parameter which leads to example.com?id=parameter or example.com/index.php?id=parameter using php
I searched alot about this and could not find a reference. all I need is the name of this technique so I can search for it.

Upvotes: 1

Views: 209

Answers (4)

Hello World
Hello World

Reputation: 577

You need to create an .htaccess file to rewrite your URL's, there are loads of tutorial out there, take a look at this article

Upvotes: 1

sberry
sberry

Reputation: 132098

You use URL Rewriting like mod_rewrite, but the design pattern is called a front controller

Upvotes: 1

SeanWM
SeanWM

Reputation: 16999

Check out mod_rewrite example. It's called URL rewriting or clean URLs.

Upvotes: 1

Nico Burns
Nico Burns

Reputation: 17099

This technique is called URL rewriting. The most common way of doing this is using Apache's mod_rewrite module (you can Google that).

Upvotes: 0

Related Questions