Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

106
Views
How do I redirect any url under a folder, keeping the subfolders?

If I have example.com/example/ with subfolders (for example: example.com/example/test1/), how do I redirect from example.com/redirect/ to example.com/example/ so that example.com/redirect/test1/ will redirect to example.com/example/test1, without creating a subfolder under example.com/redirect/ for every subfolder under example.com/example/ using HTML?

Currently, I have under example.com/example/ the following index.html file:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="refresh" content="0; URL=https://example.com/example/">
    <title></title>
</head>
<body>
</body>
</html>

I'm hosting the website via GitHub pages.

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs