Hello,
i have just installed a new joomla site in a new directory, and wanted visitors to my domain to be redirected to the joomla directory using mod rewrite.
after tips and searching i have added the .htaccess file below.
But after adding the settings below to the htaccess file, the old website is not reachable: error 404
i would like to be able to access the old website in its own directory: http://www.domain.com/wordpress
As i am quite new to the rewrite i hope to find some help here..
===== .htaccess file ====
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# This section must come first!
# Add trailing slash if path does not contain a period or end with a slash
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://www.domain.com/$1/ [R=301,L]
#Change http://domain.com to http://www.domain.com (Optional)
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule ^/?(.*)$ http://www.domain.com/$1 [R=301,L]
#Rewrites http://www.domain.com/joomla to http://www.domain.com/
RewriteCond %{REQUEST_URI} !^/joomla
RewriteRule ^(.*)$ joomla/$1 [L]
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://www.domain.com/$1/ [R=301,L]
#Change http://domain.com to http://www.domain.com (Optional)
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule ^/?(.*)$ http://www.domain.com/$1 [R=301,L]
#Rewrites http://www.domain.com/joomla to http://www.domain.com/
RewriteCond %{REQUEST_URI} !^/joomla
RewriteRule ^(.*)$ joomla/$1 [L]