How to redirect homepage in Joomla
Joomla is a wonderful platform to publish websites. With readily available templates you can have your website up and running in no time. Sometimes though you may need to direct your visitors to a different page than your regular home page, for instance you may want to direct all the visitors to a promotion page during special sales events. There is a very simple and easy way of doing this in Joomla.
- Create and upload the standalone webpage to your domain.
- Backup your index.php file in templates/YOUR_TEMPLATE_FOLDER.
-
Add following lines to the index.php file under the templates/YOUR_TEMPLATE_FOLDER.
Now when the visitors come to your website they will be taken to NEW_PAGE.php.
After the need to redirect the traffic is over simply replace the index.php file with the file you backed up in step 1.
Happy coding..
January 26, 2012 @ 9:31 am
This is such a good guide, will probably apply when I have a site using Joomla.
February 13, 2012 @ 9:09 pm
Wish I would have found this post earlier. We have been fighting the index.php re-direct for along time.
June 6, 2012 @ 6:18 am
So redirecting could be easy. I thought it was hard. Thanks for sharing.
September 15, 2012 @ 9:18 am
Just what i needed! Thanks!!
November 26, 2012 @ 4:32 am
not working for me!
May 27, 2014 @ 11:41 pm
The common man or woman can make delightful, homemade bread
quite simply with a bread maker. “Check this out this review site: Bread Maker Reviews. Put the strawberries and pineapples into the blender or smoothie maker, Put in the ice cubes or the water and begin to blend slowly.
July 17, 2014 @ 10:03 pm
I know this if off topic but I’m looking into starting my own weblog and was wondering what
all is required to get setup? I’m assuming having a blog like yours
would cost a pretty penny? I’m not very internet smart so I’m
not 100% sure. Any recommendations or assistance would be greatly appreciated.
Cheers