I would like to use two separate url's, pointing to two separate websites, using one hosting and one backend.
So far there's only one website (I'll name it domain1.com). And there's already some mod-rewriting used.
redirecting www.domain1.com to domain1.com
RewriteEngine On RewriteCond %{http_host} ^www.domain1.com$ RewriteRule ^(.*)$ http://domain1.com/$1 [R=301,L]
using nice urls, so domain1.com/news/item points to domain1.com/index.php?/news/item
RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index.php) RewriteRule ^(.*)$ index.php?/$1 [L]
What I would like to achieve are the following things
- domain1.com/specific_folder_name/123456789 should point to domain2.com/123456789 just for cosmetics
- domain2.com/123456789 should run /index.php?/specific_folder_name/123456789
It should result in this:
when surfing to domain1.com/param1/param2, the server gives you index.php?/param1/param2 whan surfing to domain1.com/specific_folder_name/123456789 you get redirected to domain2.com/123456789 and the server gives you /index.php?/specific_folder_name/123456789
I hope this is clear enough...