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

Trending Topics

Online now

Members online
663
Guests online
5,777
Total visitors
6,440

Forum statistics

Threads
2,330,043
Posts
29,251,578
Members
1,154,793
Latest member
pmeyty
Back
Top