welcome back to shortlearner.com , In this tutorial we will see how to hide extension of files using .htaccess
before start learning first of all we should know about .htaccess file
what is .htaccess
in a simple words we can say that the .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.
Also Read :
PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?
Benefits of using .htaccess
- Redirect the user to different page
- Password protect a specific directory
- Block users by IP
- Preventing hot linking of your images
- Rewrite URIs
- Specify your own Error Documents
In this tutorial we make 3 php pages and hide there extensions using .htaccess file.
index.php
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Remove .php extension with .htaccess by http://mainvps.shortlearner.com/</title> </head> <body> <center> <div id="menu"> <ul> <li><a href="index">home</a></li> <li><a href="login">login</a></li> <li><a href="signup">signup</a></li> </ul> </div> <div id="body"> <h1>This is index.php page | see the url in addressbar</h1> <br /> </div> </center> </body> </html>
Signup.php
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Remove .php extension with .htaccess by http://mainvps.shortlearner.com/</title> </head> <body> <center> <div id="menu"> <ul> <li><a href="index">home</a></li> <li><a href="login">login</a></li> <li><a href="signup">signup</a></li> </ul> </div> <div id="body"> <h1>This is signup.php page | see the url in addressbar</h1> </div> </center> </body> </html>
Login.php
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Remove .php extension with .htaccess by http://mainvps.shortlearner.com/</title> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <center> <div id="menu"> <ul> <li><a href="index">home</a></li> <li><a href="login">login</a></li> <li><a href="signup">signup</a></li> </ul> </div> <div id="body"> <h1>This is login.php page | see the url in addressbar</h1><br /> </div> </center> </body> </html>
Save below code with .htaccess
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^(.*)$ $1.html </IfModule>
Itactmab effexor reviews
But check with your doctor if you have allergies or anaphylaxis, you ll probably want to avoid most essential oils tadalafil generic vs cialis
candipharm com
http://www.candipharm.com
When I read an article on this topic, casino online the first thought was profound and difficult, and I wondered if others could understand.. My site has a discussion board for articles and photos similar to this topic. Could you please visit me when you have time to discuss this topic?
hydroxychloroquine dosage for covid treatment http://hydroxychloroquinex.com/
Your writing is perfect and complete. baccarat online However, I think it will be more wonderful if your post includes additional topics that I am thinking of. I have a lot of posts on my site similar to your topic. Would you like to visit once?
http://www.hydroxychloroquinex.com/ aralen for sale
Looking at this article, I miss the time when I didn’t wear a mask. baccaratcommunity Hopefully this corona will end soon. My blog is a blog that mainly posts pictures of daily life before Corona and landscapes at that time. If you want to remember that time again, please visit us.
Great article! Your article helped me a lot. Thanks! will you allow it I want to share your article to my website:
gate 交易 所
https://drugsoverthecounter.shop/# over the counter antidepressant
[url=https://over-the-counter-drug.com/#]over the counter allergy medicine[/url] eczema treatment over the counter
over the counter sleeping pills uti treatment over the counter
https://over-the-counter-drug.com/# strongest over the counter painkiller
cialis dosage J Urol 1984; 131 425 429
[url=https://over-the-counter-drug.com/#]eczema treatment over the counter[/url] best over the counter skin tag removal
over the counter diuretic over the counter ear wax removal
[url=https://over-the-counter-drug.com/#]over the counter essentials united healthcare[/url] pink eye over the counter medicine
Ganie MA, et al tamoxifen side effects weight gain You cannot get an infusion by telehealth, although there have been some comments
[url=https://over-the-counter-drug.com/#]over the counter inhaler[/url] instant female arousal pills over the counter
https://stromectol.science/# ivermectin cost uk
[url=https://zithromax.science/#]zithromax for sale[/url] zithromax coupon
https://amoxil.science/# generic amoxicillin over the counter
https://amoxil.science/# where can i buy amoxicillin without prec
[url=https://stromectol.science/#]generic stromectol[/url] ivermectin 50mg/ml
https://stromectol.science/# minocycline 50mg tablets for human
https://amoxil.science/# how to get amoxicillin
[url=https://stromectol.science/#]minocycline 100 mg tablets[/url] ivermectin cream canada cost
https://zithromax.science/# zithromax buy
[url=https://zithromax.science/#]zithromax[/url] where can i buy zithromax medicine
First of all, thank you for your post. casinocommunity Your posts are neatly organized with the information I want, so there are plenty of resources to reference. I bookmark this site and will find your posts frequently in the future. Thanks again ^^
Science 261 1303 1993; Carrell et al raloxifene vs tamoxifen
Get here. drug information and news for professionals and consumers.
https://stromectolst.com/# ivermectin 1 cream 45gm
Get information now. Definitive journal of drugs and therapeutics.
Get warning information here. Get information now.
buy ivermectin uk
Some trends of drugs. earch our drug database.
drug information and news for professionals and consumers. Medscape Drugs & Diseases.
https://stromectolst.com/# stromectol south africa
Long-Term Effects. earch our drug database.
Everything information about medication. Read here.
[url=https://stromectolst.com/#]ivermectin drug[/url]
What side effects can this medication cause? Cautions.
Top 100 Searched Drugs. Read here.
[url=https://stromectolst.com/#]stromectol online pharmacy[/url]
Cautions. Generic Name.
Get here. Generic Name.
[url=https://stromectolst.com/#]ivermectin 9 mg[/url]
Commonly Used Drugs Charts. Best and news about drug.
Everything what you want to know about pills. Medscape Drugs & Diseases.
generic ivermectin cream
Everything what you want to know about pills. Some trends of drugs.
Everything about medicine. Everything about medicine.
[url=https://stromectolst.com/#]stromectol nz[/url]
Everything about medicine. Some are medicines that help people when doctors prescribe.
Learn about the side effects, dosages, and interactions. Read information now.
[url=https://stromectolst.com/#]stromectol covid 19[/url]
All trends of medicament. Best and news about drug.
Get warning information here. Read information now.
https://stromectolst.com/# ivermectin 3mg tablets
Get warning information here. Top 100 Searched Drugs.
Read here. Comprehensive side effect and adverse reaction information.
[url=https://stromectolst.com/#]stromectol usa[/url]
Actual trends of drug. Some trends of drugs.
Some trends of drugs. Read now.
https://stromectolst.com/# ivermectin tablets uk
Get warning information here. Long-Term Effects.
Comprehensive side effect and adverse reaction information. Comprehensive side effect and adverse reaction information.
[url=https://stromectolst.com/#]stromectol without prescription[/url]
Get information now. Everything about medicine.
Read information now. Get warning information here.
https://stromectolst.com/# buy stromectol online
Top 100 Searched Drugs. Get here.
Read information now. Long-Term Effects.
https://stromectolst.com/# stromectol 3 mg price
Get here. Everything about medicine.
priligy and cialis together Women s concerns about the emotional impact of awareness of heritable breast cancer risk and its implications for their children
Comprehensive side effect and adverse reaction information. Get warning information here.
[url=https://stromectolst.com/#]stromectol online canada[/url]
Everything information about medication. Top 100 Searched Drugs.
Everything information about medication. Comprehensive side effect and adverse reaction information.
[url=https://stromectolst.com/#]stromectol price[/url]
Drug information. Everything information about medication.
earch our drug database. Commonly Used Drugs Charts.
buy ivermectin nz
What side effects can this medication cause? Drug information.
Top 100 Searched Drugs. Prescription Drug Information, Interactions & Side. https://avodart.science/# where to get avodart without dr prescription
Learn about the side effects, dosages, and interactions. drug information and news for professionals and consumers.
Drug information. What side effects can this medication cause?
[url=https://levaquin.science/#]buy levaquin prices[/url]
Read now. Actual trends of drug.
Learn about the side effects, dosages, and interactions. safe and effective drugs are available.
https://mobic.store/# can you get mobic
Read now. Long-Term Effects.
Get warning information here. What side effects can this medication cause?
lisinopril brand name uk
All trends of medicament. Everything information about medication.
Everything what you want to know about pills. Commonly Used Drugs Charts.
[url=https://mobic.store/#]can i buy mobic pill[/url]
Top 100 Searched Drugs. drug information and news for professionals and consumers.