plz help me i m want .php file show .html help me plz

Started on the old forum in January 2012 · view the original in the archive · old links redirect here

11 replies · 838 views · started 14 years ago · 1 min read

TL;DR · summary of 11 replies
  • -work on changing all php links to html manually is required.
  • -url rewrite might be hard if there are many traffic and parameters in the links.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

5 participants
softwarefreak Senior · 349 posts #2

Inside your .htaccess file

AddType application/x-httpd-php .php .htm .html AddHandler x-httpd-php .php .htm .html

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

razzbee Developer · 130 posts #5

Just create a .htaccess and put in this code Note that U will have to change the url links from urdomain.com/page.php TO urdomain.com/page.html and again maintain the real name like index.php must turn index.html ,change only the extension but not the page name

<IfModule mod_rewrite>
RewriteEngine on
RewriteBase /

RewriteRule (^.+)\.html$ /$1.php [L]
ewanz Developer · 187 posts #6

razzbee wrote: Just create a .htaccess and put in this code Note that U will have to change the url links from urdomain.com/page.php TO urdomain.com/page.html and again maintain the real name like index.php must turn index.html ,change only the extension but not the page name

<IfModule mod_rewrite>
RewriteEngine on
RewriteBase /

RewriteRule (^.+)\.html$ /$1.php [L]

If you use many links in your site, please make sure you edit the link to html extension too because users will go to page not found lol!! Thats mean u need to work more hard to edit all your link php to html unless u use function for every link extension 😕

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
ewanz Developer · 187 posts #8

it is hard to rewrite if your link is more traffic with parameter... 🆘🆘🆘

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
Wintch Developer · 68 posts #12

ewanz could you help us with da function to change evry link url???

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close