mod_rewirte disables url?

CLOSED

mod_rewirte disables url?

Postby migimli » Mon Feb 08, 2010 4:06 am

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]
migimli
 
Posts: 1
Joined: Mon Feb 08, 2010 3:56 am

Return to New Threads/Problems

Who is online

Users browsing this forum: No registered users and 2 guests

cron