🔒 Closed Paano po alisin ang .php

Status
Not open for further replies.

Sainty

Eternal Poster
Noob question po, nag upload po ako ng php file sa isang webhosting site tapos may mga nakikita ako na ganito lang format ng url nila.
Mywebsite.com/untitled
Tapos yung saken ay Mywebsite.com/untitled.php
Paano ko po aalisin yung .php sa format ng url? Thanks po.
 
Hi, pwede mo ring sundan yung OOP style ng programming pero sa tingin ko advance ito para sayo.
Pwede ka ring gumawa ng server side na program na kumukuha ng file based sa parameter sa URL.
 
1. Open or create .htaccess file
2. Lagay mo to sa .htaccess
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
 
Status
Not open for further replies.

About this Thread

  • 6
    Replies
  • 606
    Views
  • 6
    Participants
Last reply from:
Misanthropy

Trending Topics

Online now

Members online
1,255
Guests online
2,064
Total visitors
3,319

Forum statistics

Threads
2,286,079
Posts
29,035,436
Members
1,217,780
Latest member
zeroastral
Back
Top