Drupal + domain redirect

Van egy shared hosting accountom, amin cpnalen keresztul beallitottam egy subdomaint, majd telpitettem ala egy drupalt. Kesobb regisztraltam meg egy domainnevet, es addon domainkent hozzarendeltem a hosting csomagomhoz, meghozza ugy, hogy a subdomainre mutasson.

Ekkor ha beirtam a www.addondomain.net cimet, akkor bejott a subdomainhez rendelt oldal, viszont barmire kattintottam rogton www.subdomain.maindomain.net url jelent meg a bongeszo cimsoraban.

Ezek utan beallitottam a subdomain redirectiont, ugy hogy a subdomain a az addondomainre atirodjon. Ez rendben is volna, mukodik is minden, kiveve a drupal search es login funkciojat.

Tudna esetleg vki segiteni a .htaccess filet beallitani, hogy minden rendesen mukodjon?

---------8<--------------------------------

RewriteCond %{HTTP_HOST} ^subdomain.maindomain.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.subdomain.maindomain.net$
RewriteRule ^(.*)$ http://addondomain.net/$1 [R=301,L]
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.

Order deny,allow
Deny from all

# Set some options.
Options -Indexes
Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More exist in sites/default/settings.php, but
# the following cannot be changed at runtime. The first IfModule is
# for Apache 1.3, the second for Apache 2.

# Reduce the time dynamically generated pages are cache-able.

ExpiresByType text/html A1

# Various rewrite rules.

RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
#RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# $Id: .htaccess,v 1.66 2005-03-20 19:15:00 dries Exp $

---------8<--------------------------------

Hozzászólások

Redirect nélkül config fájlban (sites/addondomain.net/settings.php) átírva a $base_url-t?