Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > PHP / mySQL

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 12-17-2014, 10:18 AM   #1
knojiyak
Registered User
 
Join Date: Dec 2014
Posts: 1
How to remove .php from url?

Dear Friends,

Please help me.

I want to remove .php From url.
.php replace with .html

Thank You.

Fazebook | Fazebook Blog
knojiyak is offline   Reply With Quote

Old 01-21-2015, 02:25 AM   #2
george.web13
Registered User
 
Join Date: Jul 2014
Location: Athens, Greece
Posts: 461
You have to use mod rewrite in your .htaccess file.
example :

RewriteEngine On
RewriteRule ^page1\.html$ page1.php [L]
RewriteRule ^page2\.html$ page2.php [L]
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
george.web13 is offline   Reply With Quote
Old 02-05-2015, 04:06 AM   #3
satvat
Registered User
 
Join Date: Dec 2014
Posts: 3
RewriteEngine On
RewriteRule ^page1\.html$ page1.php [L]
RewriteRule ^page2\.html$ page2.php [L]
satvat is offline   Reply With Quote
Old 02-07-2015, 01:15 PM   #4
Umar Farooque k
Registered User
 
Join Date: Feb 2015
Posts: 29
if you have put the php script in your page then you cannot change
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Umar Farooque k is offline   Reply With Quote
Old 03-05-2015, 12:31 AM   #5
kathyrose
Registered User
 
Join Date: Feb 2015
Posts: 126
You do so from your admin or cpanel of the site change extension of the web pages from there.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
kathyrose is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple way to remove empty paragraph tags in wordpress website posts arronmattwills Graphic Design 0 02-24-2014 09:02 PM
How do I remove bad backlinks? sinicline Google 2 08-05-2013 07:35 AM
How to remove unexpected URLs from Google index result tim wallace Search Engine Optimization 19 03-08-2013 03:42 AM
How do I remove bad backlinks? smileboy Search Engine Optimization 4 03-04-2012 11:40 PM


All times are GMT -7. The time now is 11:44 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.