Solved

Url rewriting

Posted on 2006-07-17
5
237 Views
Last Modified: 2010-03-04
0
Comment
Question by:us111
  • 2
  • 2
5 Comments
 
LVL 27

Expert Comment

by:caterham_www
ID: 17125252
it depends...

If http://mail.mydomain.com is a separate account, you could use in a .htaccess file (if you don't have access to the configuration files)

Redirect 301 / http://www.otherdomain.com/othermail/

But if both domains are pointing to the same location, you must use mod_rewrite to check the HTTP_HOST.
0
 
LVL 8

Author Comment

by:us111
ID: 17128443
To be more precised, this is the same server and mod_rewrite is require for this purpose but how....
0
 
LVL 27

Accepted Solution

by:
caterham_www earned 500 total points
ID: 17129465
ok. So you must check the Host. That can be done with a condition.

RewriteCond %{HTTP_HOST} =mail.mydomain.com
RewriteRule ^(.*) http://www.otherdomain.com/othermail/$1 [R=301,L]

that will issue a redirect if the user comes from mail.mydomain.com.
0
 
LVL 8

Author Comment

by:us111
ID: 17129589
ok gonna try tonight
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now