- Messages
- 20
- Reaction score
- 0
- Points
- 26
My First Thread
Baka mayroon lang hong interesado. bagong style ng links now a days.
requirements:
step 1: open notepad++ then type the ff:
step 2: save file as filename = ".htaccess"(with double quote.) in your project folder.
by jskhulitz
step 3: Pwede kanang mag simula ng project mo. pag ilink mo ung pages sa loob ng PHP file.kahit wla nang extention file pag mag href ka.or any.. For example:
for more info about .htaccess:
eto po.result example:
View attachment 308405
Baka mayroon lang hong interesado. bagong style ng links now a days.
requirements:
- xampp
- notepad++
- browser
step 1: open notepad++ then type the ff:
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
example: "C:\xampp\htdocs\project\.htaccess"
NOTE: File name should be exactly .htaccess without file extension .txt or it will not going to work.by jskhulitz
step 3: Pwede kanang mag simula ng project mo. pag ilink mo ung pages sa loob ng PHP file.kahit wla nang extention file pag mag href ka.or any.. For example:
Code:
<a href="project/home" title="homepage">home</a>
for more info about .htaccess:
.htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software.
eto po.result example:
View attachment 308405
Attachments
Last edited: