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

Trending Topics

Online now

Members online
1,224
Guests online
11,437
Total visitors
12,661

Forum statistics

Threads
2,343,449
Posts
29,333,543
Members
1,107,775
Latest member
jun30676
Back
Top