Having index.php redirect to single.php that shows the latest post
-
I’m trying to make index.php redirect to single.php that is showing the most recent post. I put this as the content of index.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head profile="https://gmpg.org/xfn/11"> <meta HTTP-EQUIV="REFRESH" content="0; url=https://sarjakuva.tuukkavirtaperko.net/?p=<?php $newest_post_id ?>"> </head> </html>
It only creates a page that keeps reloading itself. Does anyone know what went wrong here?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Having index.php redirect to single.php that shows the latest post’ is closed to new replies.