Following situation:
I have a Joomla site hosted at
somesubdomain.somedomain.com
I have my own domain registered as
mydomain.com, pointing to
somesubdomain.somedomain.com
So, while this all works fine.
However, I want that in the browser's addressbar the registered domainname appears, which is now NOT the case:
If the user requests
mydomain.com, the browser will display the homepage and in the address bar it will correctly display
mydomain.com.
When he now clicks any menuitem the first time, Joomla will display the correct page of course,
but with:
somesubdomain.somedomain.com/?index.php/somepage
in the browser.
But my goal is to have
www.mydomain.com/?index.php/somepage
So basically, I want 2 things
- have any requests prefix with "www."
- have the original host name part replaced with my registered domainname
I was assuming this can be achieved with some simple item in ReDJ, for example:
FromURL: (.*)
ToURL:
www.mydomain.com/$0
301 (Moved permanently)
So, if i request any page, what happens is that the browser's addressbar displays
www.mradlmaier.com/$0 and because this page certainly doesnt exist, my host providers error page is displayed.
Can anyone please advice?
Or cant this be achieved with ReDJ?