/    Sign up×
Community /Pin to ProfileBookmark

Loading PHP Pages Dynamically For On-page SEO

I am my second week into learning PHP & building database-driven dynamic websites.
I noticed that some database-driven websites seem to load their pages from the database
into the main “index.php” page. In terms of on-page SEO & link indexing, is this the best way
to load the pages on your site & get them indexed by Google, Yahoo, Bing, etc., or should I
create separate page files (e.g. Home.php, About.php, Contact.php, etc.) for each page of my
website? Whichever is best in terms of SEO, I am willing to try it. Thanks.

P.S.
Oh, & the website that I’m building is an eCommerce website for my fiance. Would like for
the users to be able to click on any product & then load the corresponding details page about
the product either on that index page or on a separate page. Thanks again! 🙂

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@NogDogApr 18.2016 — Generally, for server-side frameworks/configs where all/most requests in actuality get processed by one "controller" file (index.php or whatever you actually use); a common practice is to use "friendly" URLs that are then rewritten by the web server, typically via a .htaccess file configuration in Apache (search for "mod_rewrite"). Therefore, example.com/about would get rewritten as example.com/index.php?page=about, while example.com/products/123 would be rewritten as example.com/index.php?page=products&product_id=123. So the user (and the search engines) only see the "nice" urls while your actual application sees what it needs to interpret them.
×

Success!

Help @AaronEsteban 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.18,
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,
)...