Solved

Automatically redirect Joomla folder to the root.

Posted on 2010-11-12
3
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

739 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