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

Trending Topics

Online now

Members online
513
Guests online
4,105
Total visitors
4,618

Forum statistics

Threads
2,304,618
Posts
29,160,971
Members
1,196,891
Latest member
markeru
Back
Top