Solved

Automatically redirect Joomla folder to the root.

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Summernote and form validation 10 42
PHP string issue 5 17
Why does my array not "dump?" 5 19
LOAD DATA LOCAL INFILE problem 11 0
This article discusses four methods for overlaying images in a container on a web page
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 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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 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

21 Experts available now in Live!

Get 1:1 Help Now