Tag Info

New answers tagged

0

The solution was provided on serverfault Your rule is correct. The problem you're having is because you're on a shared hosting plan at Godaddy.com. Putting the IP in here returns: Found 696 domains hosted on the same web server as 184.168.27.44 Since you're not the only site hosted on that IP, when a browser comes to the IP directly, the server ...


0

If I were you, after going live with your new site, I would change links from client sites to your new site. If you just apply a 301 redirect from your old site and that's all, you lose a little bit SEO value. For anchor text of these links, the best option would be to choose your brand name. No matters if all anchor texts are the same if it refers to your ...


0

I haven't found a way to put in a rewrite rule that puts all your virtual hosts into maintenance mode. Here are some other possible approaches: From How to disable all apache virtual hosts?, Vinko Vrsalovic suggests using a single command to disable all your virtual hosts: find /etc/apache2/sites-enabled/ -type l -exec rm -i "{}" \; You would then ...


0

I am assuming that you are, in effect, abandoning the old domain whether the old domain disappears or not, I am assuming that you prefer the new domain over the old domain. I am working with this assumption. I am always in favor of taking a bit of pain to create a clean site/scenario. Otherwise you end up with compromises that complicate things for the ...


1

Here you go.... this should work: <rule name="IE8FacePalm" stopProcessing="true"> <match url="\" ignoreCase="true" /> <conditions logicalGrouping="MatchAny" trackAllCaptures="false"> <add input="{HTTP_USER_AGENT}" pattern="MSIE 8.0" /> </conditions> <action type="Redirect" url="http://x.com/a-url" ...


2

You could do it in the PHP itself <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.domain.com/course/view.php?id=2&section=1"); ?> You could do it with mod_rewrite RewriteEngine On RewriteCond %{QUERY_STRING} ^id=2$ RewriteRule ^/?course/view\.php$ http://www.domain.com/course/view.php?id=2&section=1 [L,R=301]


2

In .htaccess: RewriteEngine On RewriteCond %{QUERY_STRING} =id=2 RewriteRule ^course/view\.php /course/view.php?section=1 [R=301,QSA,L] If the query string matches exactly id=2 then externally redirect. The QSA flag combines the original query string with the new one, so the resulting URL is actually ?section=1&id=2 - but the order should not matter. ...


0

I would not worry too much. Often people are concerned that Google will penalize them for stuff that they should be able to do. You are fine. Google will figure things out okay. In fact, I am not not sure I would wait as much as a month, but if you want to be cautious, a month should be a good period of time. I would make sure, if you can, to deliver a 410 ...


2

I am going to assume you mean that any request for example.com/page.html outputs the content of the file from websitedirectory/page.html. If it was "redirected" then the browser would show the subfolder in the URL. In your case, there is no effect on SEO. Search engines will see the same URLs you see in your browser and won't know about the subdirectory ...


1

Maybe this link (how to redirect domain according to country IP address) can help you. I think, however, that this is not a good practice. Redirection by language or country is quite strict. It is better preferred: A message at the top of your site that influence the visitor to go to the page built with his language. A system that can easily change the ...


2

If you see a totally different website, and your site is on shared hosting, it may be the case that your hoster has a configuration problem. This was the case in a similar question: "https://" refers to random site, "http://" is broken, but "http://www" works Check if your and the other site are hosted by the same provider ...


1

As you say you are directed to a compromising website, I would check that your site hasnt been hacked in some way with a unwanted redirection to the said website.


0

If you are changing the URL, you can copy all the page information that you want from one to the other, but to update crawlers, bookmarks and the like, you have to indicate a proper redirection. A 301 redirection is not necessarily bad, is not just that some of the "juice" from the original is going to pass to the new one, but also the preferred way to ...


5

No, you do not need a separate registration. http:// or https:// are just protocol specifiers. The name will resolve to the same host. However, once you're on the hosted machine, the web server determines what to display. Often, HTTP (port 80) and HTTPS (port 443) can be routed to different pages. This should be configurable by the website admin/tools. In ...


1

CloudFlare has an awesome feature that automatically injects the user's country into the request headers (and this works even on their free plan). You could then easily use a server side redirect to direct the visitor to the appropriate URL based on this header. I've been running CloudFlare on top of our site for a while and am loving it so far. ...


0

It depends on what sort of "no root page" you've got. My personal website originally returned "404" for / (and common variations such as /index.html or /index.php). Google had no trouble finding things using inbound links to actual pages, but the Cuil crawler couldn't handle it: I'd see a request for whichever inbound link it was following, a request for ...


3

From an SEO point of view, no, it's not a problem for your page to have no root. Search engine's index URLs, it doesn't matter if they're in subfolders or not. However, from a user-experience point of view you really shouldn't assume that anybody who lands on the root of your site wants to see the English version. Let's say a Japanese user tells one of ...


9

If the root (/) 301 redirect to /en/, Google will most probably consider your homepage is http://www.example.com/en/ and there is no problem not to have a root (/) page. Regarding Google guidelines for multilingual sites, you can use this method to separate languages on your site.


2

Finally resolved using these rewrite rules: RewriteEngine on RewriteCond %{HTTP_HOST} ^www.unwanteddomain.com$ [NC] RewriteRule .* http://whateverPlaceYouWantToSend.com [R,L] HTTP_REFERER did not work so I used HTTP_HOST.


0

You can still accomplish this with 2 domains, like this: domainA.com will open xxx.xxx.xxx.xxx/owncloud domainB.com will open xxx.xxx.xxx.xxx/homepage For this, you point both domains to xxx.xxx.xxx.xxx IP and then configure your web server to support 2 different vhosts and point each configuration to use webroot of where owncloud and homepage folders ...


1

The way I would do this is block all requests which are coming from unwantedcomain.com by checking for HTTP_REFERER Block traffic from a single domain: RewriteEngine on RewriteCond %{HTTP_REFERER} unwateddomain\.com [NC] RewriteRule .* - [F] Block traffic from multiple domains: RewriteEngine on RewriteCond %{HTTP_REFERER} unwanteddomain\.com [NC,OR] ...


1

It has been a while since I have had to do this so I am a bit rusty. Please excuse any errors. Here are some Apache documentation links: http://httpd.apache.org/docs/current/sections.html http://httpd.apache.org/docs/current/vhosts/ Here are some other reousrces that seem to be good: ...


0

Thanks to closetnoc for leading me on the right path by mentioning sites-available. I used these two articles to solve it: http://wiki.gandi.net/en/hosting/using-linux/tutorials/ubuntu/virtualhosts http://twohlix.com/2011/05/setting-up-apache-virtual-hosts-on-centos/


0

It depends how your domain is configured. If it is in /etc/apache2/sites-enabled/000-default or (domain.com in same directory) file, then edit that file. Otherwise it will be in /etc/apache2/apache2.conf file. Find ServerName domain.com directive and add this line below that: ServerAlias www.domain.com This will make alias also work for same domain. For ...



Top 50 recent answers are included