How to redirect a port range on a load balancer

I’m a little new to this and trying to figure this out. I have 3 web servers running Ubuntu 16.04 and Apache2. One of the web servers will serve as a load balancer for the other two. I have the load balancing part correct, but I am trying to set this up where the port range 60000-65000 on the load balancer is redirected to the web servers on port 80. My guess is that this is done using iptables but that’s just a guess. Has anyone implemented this before? Thanks in advance.

Cancel button redirect in a url

I have a CEWP with an image. The URL takes you to the pages library and selects the content type specified in the URL. I need to make the cancel button take you back to the home page of that site. At the moment it redirects to the site settings.

<a title="Create News Article" href="/team/communications/news/_layouts/15/createpage.aspx?source=" target="_blank" home.aspx"list="7BEF313E0C%2D6D16%2D4FEE%2DAA81%2D1097721207B67D;RootFolder=/team/communications/news/Pages&amp;ContentTypeId=0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D000F6AAE38AC4E3D41A4AFABC6180DF3B508001CF7C87B173FAF4799ACE88DD0B55D3A&quot;"><img class="ms-rtePosition-2 ms-rteImage-0" src="/team/sales/Style%20Library/Images/WhiteIconCreateNews.png" alt="" style="margin: 5px;"/></a> 

How to redirect a command’s output to file, when the command is via a wrapper’s system call?

I want to redirect both output and stderr to a log file. Easy enough, right?

python3 /home/user/Utilities/gpu.py L1.py &> log_L1.py.txt & 

However, when instead of calling the command directly I use a system call, I do not get the output and the stderr in the files, but rather they are returned to my screen, and the output files are not created.

staggered_runner.py:

import time import os  scripts=['L1.py','L2.py','L3.py','L4.py','L3_2D.py','L4_2D.py']  waiting=1200  for s in scripts:     command='python3 /home/user/Utilities/gpu.py '+s+' &> log_'+s+'.txt &'     print (command)     os.system (command)     time.sleep(waiting) 

Then I run

python3 staggered_runner.py 

I expected to receive only the direct outputs of staggered_runner.py, that is, those of each run of print (command), and have the rest directed to the to appropriate files.

How can I do this, while still using the wrapper?

Make 50 Edu and Gov Redirect Backlinks PR10 to PR5 with Ping+Index+RSS Feed For SEO for $2

First Step: I will make 50+ Edu and Gov Redirection Backlinks High PR Edu and Gov Authority Websites. Congrats! You’ve got your backlinks! Google Panda, Penguin & Hummingbird Safe. 2nd Step: Now let’s get them indexed in Google. I will put all the Created Backlinks URLs into Mass Piner and “Ping” those successfully. 3rd Step: I will use Rapid Indexer tools to get Index your all created Backlinks. 4th Step: I will convert all created Backlinks into RSS feed. RSS Feed will increase possibility Google Indexing rate. Backlinks from Educational and Government sites are the most Effective resources of a website because the .edu and .gov domains are not sold by any registrar on the internet. These are not ordinary sites which everybody can make. So, Search engines like Google, Bing, Yahoo! and others worth backlinks from .edu and .gov sites the majority. Google Ranking Booster: Backlinks will create on 50+ different high authority sites(PR10-PR7). That means your website will boost up on the most trusted and best-ranked sites on Google. Domain Authority: Having Links on these Top Domains give more authority and trust to your site. These sites are Domain Authorities from DA 50 – DA 100. Imagine the amount of link juice and authority your site will benefit from these backlinks. Stability: These are long-term stable links & 100% White hat and fully Compatible with Google Panda, Penguin & Hummingbird updates. What does the service include? All links to be done 100% manually with white hat methodHigh PR BacklinksExpress DeliveryThe natural mix of no and dofollow Backlinks GuaranteedGoogle safeImprove Website RankingHigh PR Backlinking: Websites Hosted On Different IpsNo adult or Porno LinksNo Use of Auto Software’s or ToolsGet Full report. For One Page, order only one time & for Multiple pages, you can order as many as you need. What I Need To Start Order 1. URL (Just one link)

by: earnfree55
Created: —
Category: Link Development
Viewed: 269


Alternatives for 301 Redirect to Inform Crawlers of New URL?


Question

Are there techniques to let search engines know a page has moved other than 301 redirects?

Background

Hell Migration

We recently migrated our knowledge base from one vendor to another and it’s gone very poorly from an SEO perspective. The pages don’t do anything you need for SEO to work, and the new platform has severely limited options to address the situation

The URL Journey

1. Original Article: /en-us/Getting-Started

It started with vendor 1, oh how we loved you and your ability to woo search engines with you well structured content and great search results.

2. New Busted Article /article?id=123

Then the new vednor came, it worked and passed all the user tests, got testing sign-off and headed to production. None of us were wise to the fact the new page was dynamic and slow and crawlers couldn’t find titles or descriptions for the page.

3. /en-us/Getting-Started -> 301 /article?id=123

So we made the ominous mistake of 301 redirecting all of our old and good vendor articles to the new awful vendor articles. Along with our sitemap and organic and direct traffic from the old url a fair amount of crawlers made the switch to the shitty version of that page.

4. /article/Getting-Started

Fortunately we were able to figure another approach and the search engines are much happier with their cached snapshots with proper titles and descriptions. We’ve submitted new site maps and the good pages are showing up.

How can I deal with the Busted URLs

Unfortunately we’re still seeing results for /article?id=123 with their useless titles and all of our rank they’ve stolen from the original good vendor.

Option 1 301 Redirect – No Platform

I’d love to use a 301 redirect than all the original ranking finds it’s home on the page that gives google decent info to work with.

Option 2 rel canonical – Too Slow

I could add rel canonical to tell searchs the good stuff is at the new url, and merge our ranks. But the page is so slow i don’t expect the crawlers to actually see it.

Option 3 stripped page, rel canonical, client side redirect – Maybe?

I could strip down the page to just a rel canonical link to the good page, and then redirect to the canonical. But then the content on my supposedly duplicate pages won’t look the same at all, which seems like might cause problems.

What should I do

Option 3 is the only option I can see, but I have zero idea how google feels about the page with the rel canonical link and no other content by a client side redirect going to the new page.

Is this a workable approach? Or should I just give up on this one.

Security issue with .htaccess with dynamic http_host redirect?

I would like to know if it would be an issue to use this code in a production environment:

RewriteCond %{HTTP_HOST} ^(?:www\.)?([a-zA-Z0-9_-]+)\.(?:com|co\.uk|es|de)$   RewriteCond $  1 ^sitemap([0-9]+)?\.xml(\.gz)?$   RewriteRule ^(.*)$   /files/%{HTTP_HOST}/$  1 [L,QSA] 

Basically, I have hundreds of domains pointing to the same home directory on a server. I would like to move all the sitemaps for each site to a different folder (so example1.com can not access example2.com’s sitemap!)

First of all, I can not hard-code all the domains in a “white-list” as we are talking about hundreds of them and adding more weekly.

The plan is to basically redirect any requests for sitemap.xml/sitemap2.xml/sitemap.xml.gz to the domains’ folder.

So for instance:

example1.com will have it's real sitemap.xml file in /files/example1.com/sitemap.xml example2.com will have it's real sitemap.xml file in /files/example2.com/sitemap.xml 

My question, is if it is a possible issue to use HTTP_HOST in a RewriteRule, as I know that it can indeed be an issue if you do not filter it in PHP for example, if you do a redirect using HTTP_HOST as the user can manipulate it.

Thank you!

Redirect back to Workflow Status page after Approving task in SharePoint Online

Currently I have a document workflow setup to send task participants an email with a given task to review and approve a document. In the email I included a link to the page where they can approve/reject the document. My problem, however, is that once users click accept or reject on the form, it redirects them to the task list for the SharePoint site, which I do not want.

Instead, I want them to be redirected back to the Workflow Status Page for the document they are approving. What I’ve tried is setting the URL to [%Current Task:Form_URN%]&Source=[%Workflow Context:Workflow Status URL%] in the String Builder because I though it would that would just redirect the user back to whatever the source URL was, but that didn’t work. I received an error that had to do with the Workflow Instance ID.

I’m not sure why this isn’t working. Is this solution possible. And if so, can it be implemented using SPD and not with code?

What is the Cloudflare equivalent of these two .htaccess redirect rules?

I usually set up my sites to rewrite URLs in the following cases:

  1. All http traffic is redirected to https (and www), with a 301
  2. All non-www traffic is redirected to www (and https), with a 301

In .htaccess, the rewrite rules are as follows:

RewriteEngine on RewriteCond %{http_host} ^example.com [NC] RewriteRule ^(.*)$   https://www.example.com/$  1 [L,R=301]  RewriteCond %{HTTPS} !=on RewriteRule ^.*$   https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] 

Note that all redirects are achieved with only one hop. Non-www traffic goes to www and https, and non-https traffic goes to https and www. How do you achieve the same results in Cloudflare?

P.S. I’m not sure if Cloudflare’s “Always Use HTTPS” option is worth enabling since it doesn’t use a 301 and I have to write a separate rule for a https redirect rule with a 301 anyway.

Redirect to checkout instead of cart

I have a cart icon in the top navigation bar and when clicked, the page will redirect to checkout instead of the shopping cart page.

My reason is, the shopping cart page contains a table that displays the items added by the customer while the checkout page has the form for billing address and again, the table for displaying the items that are added to cart.

So I came up with the decision to just redirect to checkout instead of cart page to improve convenience and its only redundant if customer’s will go to cart page to see their items and then checkout where they can see it also.