When multiple domain names direct to the same domain name, it is similar to entering kaixin.com to automatically jump to renren. comOptions + FollowSymLinksRewriteEngineonRewriteCond $1! ^ (Index. php | images | style | js | system | Scripts | img | php | robots.txt) RewriteCond % {HTTP multiple domain
test: Direct input nslookup c.com and Nslookup have a record point to IP.
Second, we can configure rewrite rules within the nginx. Open nginx.conf File
Find your server configuration segment: "The following is my server configuration segment"
Copy Code code as follows:
Server
{
Listen 80;
server_name www.c.com c.com;
if ($host!= ' www.c.com ') {
Rewrite ^/(. *) $ http://www.c.com/$1 permanent;
}
This is the user directly access c.com direct jump www.c.com. T
Configuration of the 1.apache2First of all, to configure the apache2, if not configured, please refer to my previous blog: Lamp configuration2. The resolution of the domain nameResolves a record of www and @ for all domain names to the IP of the cloud server3. Configuration of the virtual Host 1. Configuring httpd.conf
If etc/httpd/conf/httpd.conf is pre
Now the domestic blog does not support the binding top-level domain, most give you a similar to the xx.com/dd/URL, so that your domain name CNAME have no place, check the next information, find the URL hidden forwarding way, code implementation is as follows:123"Content-language"Content="ZH-CN">4"Content-type"Content="text/html; charset=gb2312">5's blog67"0"Borde
Install the JDK first and assume that the C:\JDK is loaded after downloading
Then install the tomcat5.0 hypothesis to install to C:\tomcat
Set the environment variables below:
Click on "My Computer"-"Properties"-"advanced"-"Environment variables"-"new"
Name Input: Path value input: C:\jdk\bin;;
Add the other variables in turn, with the names and values of:
Classpath=c:\jdk\lib\dt.jar;c:\jdk\lib\tools.jar;
JAVA_HOME=C:\JDK;
Tom
How can I use PHP to implement mutual transfer of short domain names? The following code can help you implement it. It is very simple. For more information, see
How can I use PHP to implement mutual transfer of short domain names? The following code can help you implement it. It is very simple. For more information, se
Use PHP to implement mutual transfer of short domain names. Copy the code as follows: *** generate nbsp for a short domain name; * classBuild_URL {private $ mem; private $ base_urlxxx.com; publicfunction _ construct () {$ mem_confarray (
The code is as follows:
/** * Short domain name generation and resolution*/Class
How can I use PHP to implement mutual transfer of short domain names? The following code can help you implement it. it is very simple. For more information, see
The code is as follows:
/** * Short domain name generation and resolution*/Class Build_URL {Private $ mem;Private $ base_url = 'http: // xxx.com /';Public function _ construct (){$ Mem_conf = array (Arr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.