I have a website that has a root html at index.html. I want to redirect index.html to a php file in a private folder one parent above to run an index.php. This file would then render the html content that I need depending on the request. How would I go about this process of getting the index.php from the index.html. The file structure looks like this:
private/
-index.php
public_html/
-index.html
Try to use this meta code in your index.html
<meta http-equiv="Refresh" content="0; url=/private/index.php">
It's an html redirection actually.
If this doesn't work, try to hook in htaccess
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.