0

During the last 2 hours I'm trying to achieve the following with no success.

I have a domain (lets call it www.test.com) which is assigned to a specific folder in my host, for example : public_html/test.

Now, what I'm trying to do is, I want to redirect a specific url (www.test.com/move) to a subdomain that exists and is assigned to another folder inside the public_html.

I want this to happen only for the specific directory (move) which does not exist inside the test folder.

I guesss this can be done through .htaccesss but I fail miserably every time.

Any ideas on what I miss?

4

1 に答える 1

1

その特定の URL のみを実行したい場合、これは非常に簡単です。

RewriteEngine On
RewriteRule ^move$ http://subdomain.test.com [R=301,L]
于 2012-09-11T19:08:05.500 に答える