Hello Friends!
I wonna ask you
I have to change my domain name.
I know how to make redirect and change robots.txt
But other things I do not know well:
1). Do I have to add my new domain name (which will be the main name) as a parked domain name or as an additional domain name.
2). What should I do with hosting folders?
All of the names currently point to the same web server folder which is correct. That is, the domain.net, domain.org, etc all work without redirecting to the main .com
How do I get visits to the .org and .net to redirect the browser to domain.com?
This should be basic, but I am can't figure out the best approach.
I have a demo.domain.com and domain.com
they both show the same information and point to the same folder.
How can I redirect all demo.domain.com visitors to domain.com?
#Hide Index
IndexIgnore *
#Define ErrorDoc
ErrorDocument 404 http://www.domain.com
#REDIRECTS
Redirect 301 /page.php http://domain.com
Redirect 301 /inc/page.php http://domain.com
Options +FollowSymlinks
RewriteEngine on
#Redirect all pages in a folder to a single URL
RewriteRule ^dir/(.*)$ http://domain.com/index.php [L,R=301]
#Redirect String
RewriteRule ^index.php?var1=value&var2=(.*)
what is the best possible way to redirect and rewrite url in virtual host file?
I want to make sure it is not heavy on the server.
I tried many ways on the virtualhost file but when I restart the apache it fails. I dont want to use .htaccess...
I know this must have been answered a million times but I can't seem to get it to work
I would like to redirect a subdomain to a subdirectory.
I am currently using
server {
server_name sub.domain.com;
rewrite ^(.*) http://www.domain.com/sub-directory permanent;
}
If I navigate to sub.domain.com I am redirected to http://www.domain.com
EDIT
Here's my full config.
I have the following on my .htaccess file within /var/www/html folder.
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.net [nc,or]
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com\.au [nc,or]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent, NC, L]
I want all domain.net and domain.com.au requests to redirect to domain.com.
In a lab environment, I am attempting to configure an SCCM server (2007) to be our patch solution across three different domains.
DOMAIN A (domA.sample):
The trusted domain. SCCM01 (Server) is on this network.
DOMAIN B (domB.sample):
One way trust between the two domains.
I have: - two DNS servers: 1.1.1.1 and 2.2.2.2 - domain name: domain.com pointed to 1.1.1.1
I want to point sub domain: sub.domain.com to 2.2.2.2 (obviously www.sub.domain.com too)
on 1.1.1.1 I've create a DNS A record pointing sub.domain.com to 2.2.2.2
accessing sub.domain.com now lead to 2.2.2.2 successfully
the problem is the DNS records on 2.2.2.2 such as CNAME www do not work means access