Hot answers tagged

5

I would very much like to use wildcard redirects where possible (like in the directory structure that contains 2,000 MP3 files). If your server software is apache, then you can use the rewrite module to redirect some URLs to others using wildcard character sequences in the regex. For example, to redirect http://example.com/apple1, ...


5

Well aren't you friendly... "Hey Google, I'm having a DOS, but im making it your problem, thanks" First: There is no difference for you between serving an 301 or an 404 error page. Your server will have to do the same amount of work. The difference here is that you, with your 301->google solution, now ALSO make it Google's problem, effectively doubling ...


2

i want to make infinite redirection because i dont want facebook bot crawl my site. if do in the normal way, the facebook also trace my website, and when I share in highly frequency mysite on facebook then my website will be blocked. if make facebook bot stuck in redirect it can not trace mysite – Sheng Long That tactic'll work perfectly, if you want to ...


2

As im aware best practice is to 301 redirect. (.htaccess allows for "wilcard" redirects.) stackoverflow.com - How can I use htaccess to redirect paths with a wildcard character Google has a guide named Transfer, move, or migrate your site If you've moved your site to a new domain or subdomain, use the Change of address tool in Search Console. ...


2

301 redirection is a suggested method if you have almost similar content on the page you are redirecting to. Otherwise google penalizes that and considers that a soft 404, where-in the site is misleading the users. So you can redirect some urls i.e. apple-to-apple mapping, but don't redirect everything to a single home page. Rather add a 410 permanently ...


2

Redirecting lot of pages which is having good SEO value to a single page website may not be a good idea. Consequently you lose SEO value for the old website. IMO Just use the website for advertising purpose of new website. Place a good banner. Offer something..


2

Closetnoc pretty much sums this up in comments... no benefit. To answer your specific questions: I understand this should not affect search engine ranking at all Correct. However, if mynewbrand.com was already an established domain/website that was already attracting significant traffic then you could benefit (if the subject matter of the original ...


1

I tried to add this into .htaccess file: RewriteEngine On RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit|FacebookExternalHit|Facebot) [NC] RewriteRule ^(.*)$ ^$1 [R=302] As already stated you don't "redirect", and certainly don't try to create an "infinite redirect", in order to block traffic. Purposefully creating an "infinite redirect" for any ...


1

Javascript redirect: Yes this will hurt SEO as this would be considered as a sneaky redirect. 301 permanent redirect from backend: will hurt it badly as you are giving an indication to crawler that you are moving your page example.com/username/ → example.com/username/broadcastid/ which is wrong and you will lose your ranking on main profile page. I would ...


1

The other answers have already covered that redirecting would be a bad/pointless response and that simply dropping the response with a suitable status would be preferred. However, you did ask some other questions... will the other destination be aware of my Server IP? You used Google in your example. Being a search engine they will probably discover ...


1

If you are using WordPress as CMS you can install Yoast SEO and in that you can set permalink to overcome this issue. If you are using PHP you will need code to set permalink.


1

My hypothesis on the 5429 errors is that Google is trying to parse an HTML doc, (i.e., the redirect is working, but ending up in the wrong place). Could be a 404 page, an error page or even the home page. I had this very problem yesterday where the http://example.com/robots.txt was redirecting to /index.php and then again to my home page due to a dodgy ...



Only top voted, non community-wiki answers of a minimum length are eligible