Solved

Automatically redirect Joomla folder to the root.

Posted on 2010-11-12
3
362 Views
Last Modified: 2012-05-10
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>
0
Comment
Question by:GordonRae
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
dsmile earned 500 total points
ID: 34126244
Two questions:

1. Does www.mydomain.com work? (access directly via browser)
2. What you want is to redirect request to www.mydomain.com/customers to www.mydomain.com?

If both are yes, then this is your solution http://www.isitebuild.com/301-redirect.htm

Another simple way is creating a php file as you said.

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

btw, if there's no index file for www.mydomain.com then your web server might give you permission error
0
 

Author Comment

by:GordonRae
ID: 34126256
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.
0
 
LVL 13

Expert Comment

by:dsmile
ID: 34126312
Glad it helps
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML5 frame 5 25
PHP Syntax Error 4 27
PHP Query return divisible by 3 3 16
Doing something wrong with this PDO Select Statement... 3 8
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question