arrow_upward

Pages (2):
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making .html like .php
#11
There are some reasons to do that, as mentioned here:
https://encodable.com/parse_html_files_as_php/

However, you should take a look at this "performance consideration": http://stackoverflow.com/questions/71818...tml-as-php

Remember, you can change the file extension on the view of users/browsers' address with Apache mod_rewrite
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php [nc]

So when you access a html-static-look-alike: http://example.com/forum.html, you can't realize you are accessing a PHP app: http://example.com/forum.php
VIP Linux VPS 2$/month (25$/year 60$/2 years)
1 GB RAM 20 GB Storage 500 GB Bandwidth(50Mbit) 1 core 1 IPv4 1 IPv6
facebook.com/SnoOpyMinhThang
snoopy-xserver.com
#12
I like Apache mod_rewrite and nginx rewrite tools.
Because sometime we need to optimize a link for SEO, especially the one with parameters like the current page.
http://post4vps.com/thread-347-page-2.html
But making all php files parse as html may end in bad result, take caution always as it will destroy everything.


Thank you  Sweet



#13
I can see this like Littlemaster said for SEO optimization, but in my experience I do not have any issue with using mod_rewrite to optimize my page links and having things populate correctly when searching from google or what have you. In my experience, building your software or website with things like SEO optimization, mobile friendliness and web-hooks for apps in mind is always great practice.
Thank you to CubeData and Posts4VPS for the services of VPS 8.
Pages (2):


person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting