Solved

Automatically redirect Joomla folder to the root.

Posted on 2010-11-12
3
365 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

624 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