1

I have two domains, alfa.com and beta.com.

Beta.com points to alfa.com subdirectory named "ae" by following htaccess-file. It works fine, but what should I add to code to keep beta.com URL and not the URL www.alfa.com/ae. There is also some wordpress-code in the beginning, so the last sector is the one I'm talking about (begin beta.com).

Here's the code. Any help would be appreciated. I'm totally stuck with this…

suPHP_ConfigPath /opt/php5/etc/  
AddHandler x-httpd-php52 .php

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>

beta.com:

RewriteEngine on  
RewriteBase /  
RewriteCond %{HTTP_HOST} ^(www.)?beta\.com$ [NC]  
RewriteRule ^(.*)$ http://www.alfa.com/ae/$1 [R=302,L]  
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteRule .* index.html [L]  
Jenny D
  • 27,358
  • 21
  • 74
  • 110
Kris
  • 11
  • 1

0 Answers0