🔒 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
  • 604
    Views
  • 6
    Participants
Last reply from:
Misanthropy

Online now

Members online
416
Guests online
910
Total visitors
1,326

Forum statistics

Threads
2,275,079
Posts
28,960,498
Members
1,233,573
Latest member
Openopen2727
Back
Top