Welcome to WebmasterWorld Guest from 220.127.116.11
RewriteRule ^test.html index.html [L]
When users attempted to access test.html, they would infact get index.html, without knowing that they were.
<title>Insert Title Here</title>
<frameset rows="0" frameborder="NO" border="0" framespacing="0">
<frame name="mainFrame" src="home.html" scrolling="AUTO" marginwidth="0" marginheight="0" frameborder="NO">
<body bgcolor="#FFFFFF" text="#000000">
<META HTTP-EQUIV="refresh" CONTENT="0; url=http://www.url you want to load.com">
Place these two files in the same folder.
Hope this helps!
1) If you only want to redirect [sub.example.com...] to the other site, and not any subpages (ie [sub.exmample.com...] then make sure you do "RewriteRule ^$ http://www.example.com/a/b [L]". Currently it will do everything, which may or may not be what you want.
2) Anytime you want to serve a page from a different domain, it will actually change the address. The only way to have it not change the address is to serve a page that's available on the current site.
The main domain and the sub domain are not hosted separately. Actually the sub domain is only a folder on my root (named "news")
Now can I redirect news.mysite.com to mysite.com/index.php/feed/ some how hidden?
So news.example.com => www.example.com/index.php/news will change the address.
What you want to do is possible if mod_proxy is installed. To check this, find out where your httpd program is, and do a "httpd -l" to list the modules. If mod_proxy is in there, then you can change the end of your RewriteRule line to be [P] instead of [L].
If you do not have mod_proxy, then any page you redirect to has to be available from news.example.com. Hopefully this will clear things up a little
A rewrite, on the other hand, happens entirely within the server and within the current HTTP request, and simply substitutes a different file than the one associated with the URL that was requested.
It really helps to understand this point, and to use the terms "rewrite" and "redirect" as appropriate.