Avatar of GordonRae
GordonRae
Flag for Afghanistan asked on

Automatically redirect Joomla folder to the root.

Just republished my joomla site, and prviously, I had a customer site in www.mydomain.com/customers 
I need to recreate that folder in my site, easy, but how do I create a file that will redirect to www.mydomain.com 
I tried this index.html file but I get a permissions error. If I include the entire \customers\index.html it works.
Do I need to create a .php file to redirect?

<head>

<meta http-equiv="refresh"

content="0;URL=http://www.mydomain.com/">

</head>

<body>
HTMLPHPApache Web Server

Avatar of undefined
Last Comment
dsmile

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
dsmile

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
GordonRae

ASKER
Fantastic!

Went for option:
Another simple way is creating a php file as you said.

<?php
header("location: http://www.mydomain.com");
?>

Worked a treat. Thanks De Smile.
dsmile

Glad it helps
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23