.htacces url issue

Hello,
I have a little problem with showing url of my pages. I have two domains on my server, but their url are messed up.

When i type www.xyz.com it’s normal.

but when i type www.example.com it’s www.xyz.com/something/index.php.

Any ideas how to fix it?

PS: I’m newbie both in English and writing .htacces

Can you post your htaccess code?

Here you are.

BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

END WordPress

And this is the line that i tried to add,

RewriteCond %{HTTP_HOST} !^/Test/$ [NC]
RewriteRule ^(.*)$ http://www.lucdrumhardware.com/$1 [L,R]

And i have one folder for each domain, so:
/example/ for www.example.com — Wordpress Blog
/another/ for www.another.com ---- Shop with bridged blog

and wordpress i phreaking out after moving, and www.another.com is recognized as subdomain…

Pls help ^^

The host would be something like www.example.com. I can’t image that the pattern /Test/ would ever match any host.

It matters, for example, if the line you added came before or after the WordPress code. It would be more useful if you posted the whole contents of your htaccess file, as well as the directory path of that htaccess file, and also make us aware of any other htaccess files you may have in other directories (because they can override one another).

I found the file that makes that annoying issue…

&lt;IfModule mod_rewrite.c&gt;
&lt;IfModule mod_env.c&gt;
SetEnv HTTP_MOD_REWRITE On
&lt;/IfModule&gt;

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.lucassdrummer.com$
RewriteRule . - [E=REWRITEBASE:/TEST/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

## AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^www.lucassdrummer.com$
RewriteRule ^images_ie/?([^/]+)\\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
&lt;/IfModule&gt;

#If rewrite mod isn't enabled
ErrorDocument 404 /TEST/index.php?controller=404

When i change lucassdrummer to lucdrumsomething.com, and “TEST” to /ROOT/NEWDirectory will it be ok?