dns – Do I need to change CNAME record for email redirecting?

You are both right and wrong.

For email delivery to work, DNS wise all that is required is a valid MX record (but an A record would work absent an mx record). That only covers the MTA though.

In order for imap/pop etc to work, the mail client needs to know the appropriate settings. An autodiscover record linked to an appropriately configured web server makes this a llot easier and would appear to be what is requested.

I note that “autodiscover” should be a subdomain (eg autodiscover.example.com) – so if it already exists the cname should be updated or replaced, and this should not affect anything else A cnsme for the domain name would be a very bad idea (ie you dont want a cname for example.com), and would likely break stuff. If you already have a cname for example.com you are likely doing it wrong, and autodiscover.example.com will be ignored.

google – Mobile usability warnings in Search Console after redirecting to new domain and design

I’ve just implemented a 301 redirect from a old (bad) website to a new domain with a new design. 1 day after the redirect I’m getting mobile usability errors in google search console. Errors like text to small to read, content wider than screen etc.

Previously I’ve had none of these errors so I’m wondering if this is expected behaviour or should I be worried?

Google rankings have also dropped slightly since I got these errors.

seo – redirecting inactive new domains to old domain

seo – redirecting inactive new domains to old domain – Webmasters Stack Exchange

magento2 – Call to checkout URL redirecting to homepage

When adding a redirect to the checkout page in an Ajax done callback function, it seems to just go straight to the homepage instead:

}).done(function (data) {
    if (data.error) {
        console.log(data.error);
    } else if (data.success) {
        // take user to checkout if successful
        window.location = '<?= $this->getUrl("checkout", ("productid" => $this->getRequest()->getParam("productid"))); ?>';
    }
});

The thing is, this works as expected on a local environment and takes me to the checkout and I can access the productid parameter from there etc. but for some reason, on the release server it goes straight to the homepage.
The annoying thing is, there is nothing being reported in the server logs either so there is nothing to go off here.

Has anyone else came across this scenario before? and if so, how did you resolve it? 🙂

Cheers everyone!

frontpage – Why is my archive.php redirecting to front-page.php?

I generate archives using wp_get_archives() and get list of all my archives.
But when I click one of the links its always redirect me to front-page.php.

I’ve created an archive.php file in my directory in case you are wondering. I also saved changes for permalinks.

In my case I want to redirect to year/date
The links that wp_get_archives() generate already what I’m looking for www.example.com/2020/12

What am I missing?

seo – Effect of 301 redirecting many pages from one directory/folder to another (same domain)?

I’d like to see the effects of 301 redirecting a bunch of pages from one path to another on the same domain. Example:

  • From: mysite.com/stuff/[product_id]
  • To: mysite.com/products/[product_id]

I would of course make sure to change the rel canonical tag as well.

Has anyone done this on a somewhat large scale?

If so, what were the results? I’d expect some level of bouncing around in the SERP, but how did it shake out? Net positive effect on your rankings? Neutral? Negative?

I’m curious to hear any war stories. I’ve heard from others and read in Google rater guidelines that different parts of sites can be judged independently, and I’m curious to see if the same content will rank differently given a new URL path.

redirects – Redirecting old website with multiple pages to a one page website

I’ve created a website for a client, they said they didnt’t care that SEO would be affected so I decided to create a completely new website with a different structure than their old website.

They said that they had no traffic to their website anyways, but they are ranking first for their company name(a pretty unique name).

Their old website had 3 pages that I basicly merged into a one page website and uploaded with a different domain name. This website isn’t ranking very well yet however it was just uploaded 2 days ago.

Can I redirect the entire old website to the new one and keep their SEO ranking or will it be penalized after doing so?

web hosting – Cloudflare not redirecting to HTTPS

If you are having problems with the “Automatic HTTPS Rewrites” Cloudflare option then it maybe that CF is unable to determine whether your site/resources are HTTPS enabled. From the CF docs on Automatic HTTPS Rewrites:

To determine which URLs do not have HTTPS support, we use data from EFF’s HTTPS Everywhere and Chrome’s HSTS preload list, among others.

To unconditionally redirect all users to HTTPS the preferred method would seem to be to create a page rule. From the CF support doc: How do I redirect all visitors to HTTPS/SSL?

The most effective means of redirecting visitors to HTTPS when using Cloudflare is using a page rule. While you can also redirect to HTTPS using configuration at your origin, page rules are processed at our edge, resulting in a quicker response and reduced requests to your server.

The “Always use HTTPS” action is the simplest option to redirect HTTP requests to HTTPS.

The following steps describe the process of using page rules (which will behave as a 301 redirect):

Cloudflare Page Rule 301 Redirect from HTTP to HTTPS

  1. Login to Cloudflare
  2. Select your
    site using the dropdown menu found in the upper left corner
  3. Click the Page Rules icon at the top of the screen
  4. Click the Create Page Rule button
  5. Enter
    http://*example.com/* but obviously changing the domain with
    yours.
  6. Under “Then the settings are:” click + Add a
    Setting
  7. Click the dropdown list, find and click option
    “Always Use HTTPS”
  8. Finally click Save and Deploy

However, many users still use their own server config (by that I literally mean either the main server config, virtual host or .htaccess file) and mod_rewrite (Apache) to perform the redirect. However, on the CF “Flexible SSL” option you need to be careful of a redirect loop, since your site is still serving content over HTTP to CF, so ordinary HTTPS checks cannot be applied. (The CF “Flexible SSL” option just protects the connection from the end-user to CF, not the connection from CF to your server.)

So, something like the following near the top of your .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://example.com/$1 (R=301,L)

With “Flexible SSL” the HTTPS server variable is always off (since your site is serving content over HTTP), but Cloudflare should be setting the X-Forwarded-Proto HTTP request header as the request passes through Cloudflare’s servers. Keeping the first condition ensures it should work regardless of whether you are using CF or not. If you are always going to be behind a proxy (CF) then you can remove the first condition.

…so seems like HTST is not really a great idea…

If you are committed to HTTPS then HSTS is a great idea. However, it is a one-way ticket. You will not be able to (easily) revert back to HTTP.

python – The route in Flask redirecting twice

@app.route('/customers_products/<name>',methods=('GET','POST'))
def customers_products(name):
    ##pass
        return redirect(url_for('customer_payment',name=name))
    return render_template('customers_products.html',name=name,products=products)

@app.route('/customer_payment/<name>',methods=('GET','POST'))
def customer_payment(name):
    order_numbers = (i for i in range(101,400))
    cursor = mysql.connection.cursor()
    query = 'SELECT order_no FROM order_receipts'
    cursor.execute(query)
    numbers = cursor.fetchall()

    numbers_used = ()
    for number in numbers:
        numbers_used.append(number(0))
        order_numbers.remove(number(0))

            
            
    order_num = random.randint(order_numbers(1),order_numbers(-1))
    print('Number 1:',order_num)
    print('Number 2:',order_num)

    ##pass

Output

Number 1: 168
Number 2: 168
127.0.0.1 - - (07/Apr/2021 23:14:39) "(37mGET /customer_payment/<name> HTTP/1.1(0m" 200 -
Number 1: 326
Number 2: 326
127.0.0.1 - - (07/Apr/2021 23:14:39) "(37mGET /customer_payment/<name> HTTP/1.1(0m" 200 -

I had a problem that although I only used redirect for one time then the route customer_payment redirected twice and I could not find out where is the problem that the result is not the same as I expected.

interface – Which ergonomic criteria would justify the behavior of redirecting the user to a 404 redirect page?

Without having to reference the criteria (because I think it is not necessary to answer the question), you are probably struggle with the question because of a couple of reasons.

Firstly, it is possible for there to be more than one way of classifying something, and if the criteria doesn’t allow for this (or isn’t flexible enough to adapt) then you should consider customizing it so as to be more fit for your purpose.

Guidance and error management can both fall under the bigger perspective of messaging and notification to the user, which allows the user to feel in control of their actions (in their interaction with the system). So I don’t see this as a problem that you can’t fit it neatly into just one category.

The other thing is that there are ways to implement a 404 page that leads to a more positive user experience, and ways that can make the user more confused and frustrated. So it is not so much redirecting the user to a 404 page that is the problem, because at some point your system will probably generate an error that you can’t necessarily address immediately (e.g. the server is down).

But as with all good error handling and management best practices, if you can:

  • identify the source of the error (i.e. is it caused by the user or
    the system)
  • provide some idea the nature of the error (e.g. is it an expected error caused by things like validation or something unexpected and outside of the system) and then
  • give some ideas of how to resolve the issue or perhaps next steps

Then your users will thank you instead of clogging up your support system/mechanisms.

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123