Skip to main content
Tweeted twitter.com/#!/StackWebmasters/status/495644235723735040
edited title
Link

How to redirect my homepage frominstalled in a sub-directory to another sub-directory?

Source Link

How to redirect my homepage from a sub-directory to another sub-directory?

I have a Joomla website which has been installed in a sub-directory named "joomla" and has pages like the following structures:

http://www.parsilatex.com/joomla/index.php
http://www.parsilatex.com/joomla/index.php/1391-09-23-16-04-58
http://www.parsilatex.com/joomla/index.php/1388-06-28-13-55-06/214-thumbnailsinlofinxepersian
http://www.parsilatex.com/joomla/index.php/about-us

Now I'd like to redirect the homepage only to the new Wordpress version of the website, http://parsilatex.com/site/. In other words, I'd just like to redirect the old homepage to the new one. When I use the code below, I get "Page not found" errors.

 Redirect 301 /joomla/index.php http://www.parsilatex.com/site/

How can I accomplish this via my .htaccess file?