This is my index.php file
<?php
if(isset($_GET['url']))
{
echo '<pre>';
$url = $_GET['url'];
$url = explode('/', $url);
print_r($url);
}
?>
.htaccess file
This is the htaccess file to remove extension like .php and .html
RewriteEngine On
RewriteBase /rewritemode/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
RewriteRule ^(.*)$ about.php?url=$1 [QSA,L]
Choose the right course and start building your future with practical skills.
Learn HTML, CSS, JavaScript, and PHP to build modern, responsive websites and real-world projects.
Enroll Now See Full Details
Understand electronics basics with hands-on breadboard projects and circuit building techniques.
Enroll Now See Full Details
Step into AI with real-world applications, automation tools, and smart development techniques.
Enroll Now See Full Details