简体   繁体   中英

index.html necessary but I'm using php

I'm switching from one of those web page designers to a traditional html only format ( i made a website from scratch! yay!) However, I have one index.php, the rest of the site's content is loaded into a div. The host ( webstarts.com) forces my index to be .html extension. Could this be why none of my content is able to load?

http://rsgnaturalrearing.webstarts.com/

It seems like its not reading the files ( maybe i need to give their servers a chance to update? )

Rewrite htaccess

all requests to file.html will be sent to file.php:

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php [NC]

Hope it helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM