youtube12.com to any other url redirection
for 404 error
make sure .htaccess is this
RewriteEngine On
# Redirect all requests to index.php
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteRule ^(.*)$ /index.php [L]
Create a new file called .htaccess and paste the above code into it. Save the file and upload it to the root directory of your website.
When a user accesses any URL on your website, the .htaccess file will redirect them to index.php. Then, in the index.php file, you can use the JavaScript code mentioned in the previous response to perform the actual redirection to https://savefr0m.net/#url= followed by the current URL.
<?php if (isset($_SERVER['REQUEST_URI'])) { $currentUrl = $_SERVER['REQUEST_URI']; // Extract the video ID from the current URL $videoId = $_GET['v']; // Construct the desired URL with the video ID $redirectUrl = 'https://savefr0m.net/#url=https://www.youtube.com/watch?v=' . $videoId; // Redirect to the desired URL echo '<script>window.location.href = "' . $redirectUrl . '";</script>'; exit; } ?>
Comments
Post a Comment