SpyLoaded Forum
Science/Technology/Business/Editoria => Art, Graphics Designs => Webmasters Board => Topic started by: Mr. Babatunde on July 19, 2025, 12:48:31 AM
-
Create a file name func. php >> Paste this code in the func. php file
<?php
if (strpos($_SERVER['REQUEST_URI'],'index.php') !== FALSE )
{
$new_uri = preg_replace('#index\.php\/?#', '', $_SERVER['REQUEST_URI']);
header('Location: '.$new_uri, TRUE, 301);
die();
}
?>
Step2:
* Create a folder name about-us
* Open the new folder you created.
* Inside this folder , Create new file name index. php
* Open the new file index you just created.
* Copy & Paste this code at line 1 (first line)
<?php include ("../func.php"); ?>