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

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

To combine those three rules into one you can use alternation (with a vertical bar) in a capturing group and another backreference in the substitution: For example: RewriteRule ^(information|reviews|comments)/business-name/(.*)$ /$1/new-business-name/$2 [R=301,L] $1 is now a backreference to either "information", "reviews" or "comments". Depending on ...


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

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