I think you are trying to secure your home page. Put this php code in your index. Php header("Location: testing.domain.com/admin/index.php") exit If you got everything in admin folder, then you can use this one Options -Indexes RewriteEngine on RewriteCond $1!
^(admin) RewriteRule ^(.*)$ admin/index. Php L.
I think you are trying to secure your home page. Put this php code in your index.php. Header("Location: testing.domain.com/admin/index.php") exit; If you got everything in admin folder, then you can use this one Options -Indexes RewriteEngine on RewriteCond $1!
^(admin) RewriteRule ^(.*)$ admin/index. Php L.
It is not a good sultion, I think..Can I have the solution with htaccess – user634188 Feb 25 at 13:44.
Put the following into your . Htaccess file Redirect 301 testing.domain.com/ testing.domain.com/admin/index.php.
Also, look up what the various 3xx (redirect) HTTP status codes mean. They are not necessarily interchangable. – Michael Kjörling Feb 25 at 13:29 +1 on what @MichaelKjörling said, you have to be careful with different permanent and temporary redirects.
– Myles Gray Feb 25 at 13:33 where I have to put htacces ,in root folder or testing folder? – user634188 Feb 25 at 13:41 In the root folder, make sure it is named . Htaccess – Myles Gray Feb 25 at 13:44 It is not working yet..Actually subdomain pages and folders is belongs to testing folder under root – user634188 Feb 25 at 13:55.
47 Responses to "Redirect a subdomain to a directory using . RewriteCond %{HTTP_HOST} ^www. This performs a 301 Redirect on the subdomain.
You have to check for http://www. Blog or blog, because some browsers automatically put in the www at the beginning of each address.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.