/    Sign up×
Community /Pin to ProfileBookmark

URL pattern in website

I am going to build a website which is about to have a lot of restaurant, say 200 restaurants. i am going show the menu for every restaurant. and further items in menu.

1st Question: Should I hard code the menus and item details or should i use the database??

2nd Question: I want my website pattern something like that, if i click on restaurant “Pisa Pizza”
my URL should be like this [url]www.myrestaurant.com/pisa_pizza/[/url]
and content of page will be all the details of “Pisa Pizza”.
Further if i click on the menu button
my URL should be like this [url]www.myrestaurant.com/pisa_pizza/menu[/url]
and content of page will be all the details of “Menu”.

I am just confused, this way i may have to make a lot of sub directories, what should i do here. Because there are too much restaurants i can’t make a separate for all of them.

And i am building my website in CODE CHARGE using PHP.

I will be thankful if any one give me idea and right direction .

Thanx

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @sherynust spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...