Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
PHP Server Side Scripting
3:41 pm May 21, 2026
This page requires javascript.
Forum Moderators:
coopster
Message Too Old, No Replies
How to remove the extension on a url
Questions from an old topic
Henner
Msg#:4173151
1:42 am on Jul 20, 2010
(gmt 0)
[
webmasterworld.com
...]
How did you remove the '.php' from the title?
penders
Msg#:4173232
9:34 am on Jul 20, 2010
(gmt 0)
By 'title' I assume you are referring to the filename (or URL) of the current page? (As mentioned in that other thread)
In which case if the current page is "/path/to/file/home.php" (ie. the value of the PHP superglobal $_SERVER['PHP_SELF']) then you could do:
basename($_SERVER['PHP_SELF'],'.php');
to return "home" (without the .php extension)
: Welcome to WebmasterWorld
youfoundjake
Msg#:4176386
3:08 am on Jul 26, 2010
(gmt 0)
We addressed it here a little bit..
[
webmasterworld.com
...]
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Apr
,
Mar
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
May 2026 Google Search Observations
AdSense Earnings and Observations - May 2026
AI visibility audit
Adsense / Personal Manager / Support
Hacker spoofing as GoogleBot
Page indexed but live url test gets 500 error
Link collaboration strategies
in case you missed it .
Microsoft, AS8075. Google, AS396982.
Bad actor claiming to be OpenAi
Home
Forums Index
Server Side
/
PHP Server Side Scripting
3:41 pm May 21, 2026