Possible to redirect index page to sub folder?
I am just learning. I have installed several of the demo templates, each in it's own subfolder on my site, to avoid any conflicts in code while I learn.
Is it possible to have visitors to my site directed to one of the subfolders and make that that be the actual page that launches the site? or does joomla have to be loaded into the root of the site? I want to keep joomla in its own sub directory, I have wp in its own directoy and so on. For example- how can I make the demo3 be the place that visitors get to when they type in www.mysite.com? /public_html/mysite.com/demo1 /public_html/mysite.com/demo2 /public_html/mysite.com/demo3 |
Quote:
|
Simplest and easiest way to do that is...
Create index.html for your domain. Example:www.mysite.com/index.html On index file, put following code. Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">Create blank file and name it .htaccess if you don't have one already. Insert following code to .htaccess file and put it in your root folder. Code:
redirect 301 /old/old.html http://www.mysite.com/demo1/new.htmlQuote:
|
Quote:
|
Our mission is to provide a rich and engaging content hub that empowers individuals to unlock their full potential and live a fulfilling life. what is the best component speakers
|
| All times are GMT -4. The time now is 03:12 PM. |
Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.