0

As per your forms i understand process given below: Please correct me if something wrong.

i need to change www.domian.com/About.php to www.domian.com/about.php

step 1 i need to create about.php file

step 2 i need to put code : Redirect 301 /About.php " www.domian.com/about.php" code in htacess file.

step3 i need to define canonical tag in about.php

Now after that in future i want to make change only in about.php . also can i delete About.php because we are not using it ? Please correct me if something is incorrect .

1 Answers1

0

You don't actually have to use the .htaccess to redirect users. It will be hard if you do so.

I would suggest you entering the following code to the PHP file to redirect users:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Redirecting you to *The Website*</title>
    <link rel="canonical" href="<Your website>" />
</head>
<?php
# The code below will redirect the users to the site that you want to redirect to.
# If the site has HTTPs, please change the "http://" to "https://"
header('Location: http://*Where you want the users to be redirected to*/');
exit();
# The "exit" code will prevent any more redirects in the current page.
?>
</html>

One example:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Redirecting you to GhostAnti DDoS</title>
    <link rel="canonical" href="https://fantomnet.cf/" />
</head>
<?php
# The code below will redirect the users to the site that you want to redirect to.
# If the site has HTTPs, please change the "http://" to "https://"
header('Location: https://ghostantiddos.com/');
exit();
# The "exit" code will prevent any more redirects in the current page.
?>
</html>

Hope that helped. Hit me up if you still need help in this

CrAzYz_
  • 48
  • 1
  • 9