/    Sign up×
Community /Pin to ProfileBookmark

How to remove ” .php ” into my site link

Hello developers out their ! I really want your help right now . I have seen a lot of websites and webpages and their link does not display the ” .php ” tag . How can I achieve this ?

I like links like this
[upl-image-preview url=https://www.webdeveloper.com/assets/files/2019-03-28/1553761338-669360-screenshot-52.png]
and not like this
[upl-image-preview url=https://www.webdeveloper.com/assets/files/2019-03-28/1553761351-223392-screenshot-53.png]
[upl-image-preview url=https://www.webdeveloper.com/assets/files/2019-03-28/1553761354-30334-screenshot-54.png]

How can I hide the .php file ?

I have done a lot of search about this but it gets me into an error something like the CSS , SCRIPTS and images wont load into my websites . How can i fix this ?

Thanks for my superhero who can help me out there !

By the way , I am a very beginner with server-side scripting . I only know PHP and MySQLi . I am only a 14 years old guy and I do not have a teacher in school that can teach me like this . I learn only by myself . And ofcourse I need your help to step forward into a good journey . Sorry for my wrong grammar !

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@ginerjmMar 28.2019 — Completely off the wall thought here.

If your urls were all to point to specific folders then having an index.php (the default page that your web server looks for perhaps) in each one should take care of you.

OTOH - if not everything is in a different folder, I wonder what happens if you specify folders in a url that don't exist. Does the webserver simply direct you to the root folder and (hopefully) an index.php script there? (Note - just tested this idea and it fails.)

Of course those better informed here will probably tell you about setups in the apache configuration file (?) that will interpret your urls.
Copy linkTweet thisAlerts:
@NogDogMar 28.2019 — Many sites will have some sort of route definitions in their application code, and a web server config that points most requests (excluding things like static JS, image, and CSS file requests) to a single controller file in the application code. That controller will then call functions/methods that parse the URL and determine what part of the application to call next, turning applicable parts of the URL into parameters that the chosen target may use. (Most modern server-side frameworks such as Laravel, Rails, etc. use this sort of approach; typically creating "RESTful" APIs.)

If it's a fairly small site (for some undefined value of "small"), what ginerjm recommended could be simpler/quicker to employ; so neither option is a one-size-fits-all proposition.
Copy linkTweet thisAlerts:
@CSSKING-RaldinauthorMay 04.2019 — @ginerjm#1602299 that is more confusing . I hate that style . BTW the case is solved . how can I close this ?
Copy linkTweet thisAlerts:
@CSSKING-RaldinauthorMay 04.2019 — Case is solved ! i think i need to close this case for now . how can I close it ?

@root pls close this for me .
Copy linkTweet thisAlerts:
@Steve_R_JonesmoderatorMay 04.2019 — {"locked":true}
×

Success!

Help @CSSKING-Raldin 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.6,
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,
)...