Solved

Automatically redirect Joomla folder to the root.

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now