How to redirect a web page ..?

Hello friends,

How to redirect a web page ..?

seo – Does the use of x-Robots-Tag on a 302 advertising redirect URL will prevent penalties imposed by Google when the publisher does not support nofollow links?

Usually, we buy banner ads on some websites (not with a SEO goal) and we use this approach:

short-link.example / 1234 /

On this domain, we have configured a 302 redirect to our website and a directive: always defined header X-Robots-Tag "noindex, nofollow"
so something like that

redirection 302/1234 / ourwebsite.example

Is it safe? Is it to avoid the penalties related to SEO, because we do not buy a link for SEO purposes? Unfortunately, the publisher does not support our request to add no following directly on the link.

If it is not sure, is there an alternative?

Redirect dynamic domain from www to non-www

I have a Nginx server that has a lot of domains (over a thousand) that make it follow.
What I need is to manage all these transfers, redirecting any request "https: //www.any-domain" to "https: // any-domain".

domains – Old URL will no longer be available, how to redirect to a new URL in IIS?

We currently have a site running 2 URLs

  • OldSite.sousdomain.domain.example
  • newSite.newDomain.example

We are talking about getting rid of the first URL completely. Can we do something so that when the old address is entered in the browser, it will be redirected to the new address.

Am I right to assume that when the 1st URL is entered, it will only make 404 and note can be done from an IIS point of view to redirect.

plugins – I want to redirect the URL to the previous page

I created a table in which I deleted something as a link
http: //localhost/wptheme/wp-admin/admin.php? page = batch-action-parameters & action = batch-delete & post_id = 5
and I added a code to delete the post

if ($ action == & # 39; batch-delete & # 39;) {
require_once (plugin_dir_path (__FILE__). & # 39; views / single_batch_delete.php);

the code in the required file is

if (isset ($ _GET['action']) == & # 39; batch-delete & # 39;) {
global $ wpdb;
$ delete_batch = $ wpdb-> delete (& # 39; batch_number & # 39 ;, array (
& # 39; id & # 39; => $ _ GET['post_id']
wp_redirect ($ _SERVER['PHP_SELF']. & # 39 ;? page = "batch-op-settings" & # 39 ;, 302, & # 39; Deleted & # 39;);

the data line is deleted, but it does not redirect to the code of all the batches. All the data I've used. Wp_redirect function. I've also used the header () function, but it indicates this error.

Warning: Can not Edit Header Information – Headers Already Sent

I want to know if there is a better way to deal with this problem or solution with the current code.

Redirect https-www to https-non-www

I have a folder mydom.conf in apache2 / sites-available /
In mydom.conf I have a VirtualHost where SSL is enabled and configured reverse proxy for my application from Tomcat.




   SSLEngine On

SSLCertificateFile /opt/ssl/mydom.crt
SSLCertificateKeyFile /opt/ssl/mydom.key
SSLCertificateChainFile /opt/ssl/

BrowserMatch ". * MSIE." "Nokeepalive ssl-unlean-shutdown downgrade-1.0 force-response-1.0
SSLCipherSuite ALL :! ADH :! EXPORT56: RC4 + RSA: + HIGH: + MIDDLE: + LOW: + SSLv2: + EXP: + eNULL

ServerAlias ​​

ProxyRequests Off
ProxyPreserveHost On
ProxyPass /
ProxyPassReverse /

Code (ApacheConf):

With this VirtualHost, and show the same content.

What I want, it's redirect at using VirtualHost.
How can I do that?

google chrome – how to replace and redirect the URL of wikipedia search results to the offline zim localhost server?

I did a localhost Wikipedia server via Zimserver using the script below:

#! / usr / bin / env python3
bone import
import subprocess
import system
import thread
from zimply import ZIMServer
ZIMServer ("/ home / user / zim / wikipedia_en_nov_2018-05.zim", index_file = "/ home / user / zim / wikipedia_en_nov_2018-05.idx", port = 8791, encoding = "utf-8")

When I look for something in Google I get the search URL something like

his counterpart localhost is

http: // localhost: 7891 / A / Asia.html

notice the .html suffix and / wiki / at /A/ transition.

When I click on the URL in the Google search result, it must be open in the redirection localhost server as I indicated above.

htaccess – How to redirect all pages from one subdirectory to another?

I do not know how that would solve the "duplicate content problems", but finally …

Redirect 302 / articles / / article /

Mod_alias redirect directive is the prefix match, so the above matches /articles/ and redirects to / Article / – by passing the part.

This is of course a 302 (temporary) redirect.

However, if you have other directives (especially mod_rewrite) in your .htaccess then you may need to change that. The order is also important.


Use htaccess to redirect 301 for domain change

I am moving a domain from one to the other, it is not an https transfer, but rather a transfer from to I use this code:

RewriteEngine On
RewriteCond% {HTTP_HOST} ^ exampleone $ [OR]
RewriteCond% {HTTP_HOST} ^ www  .exampleone $
RewriteRule (. *) $ Http://$1 [R=301,L]

This works well for existing page names because the site structure does not change. However, it also returns non-existent pages to the index page, creating a 404 software, which is not desirable.

Does anyone have any idea of ​​how to redirect valid pages from via 301 by returning a 404 when the page does not exist, but holding also counts 301 valid in the new domain.

So we want it:

  1. Redirection via the old site to the new
  2. Honor 301 valid in the new site (future check)
  3. Returns 404 instead of redirecting to the index page when 301 does not exist

Any orientation would be useful.

Thank you

htaccess – Attempt to create 1-1 redirects, exclude certain directories / files, and redirect all other traffic to a new website

You can not mix RewriteRule and RedirectMatch like that. You must implement redirects using another RewriteRule to make it work the way you want A rewrite rule can not prevent a redirect match from working. Instead, your rules should be:

RewriteEngine on

# Exclude files / directories from redirects

RewriteRule ^ (documents) ($ | /) - [L]

# Redirect specific files / pages to new locations

RewriteRule ^ page1.html $ [R=301,L]
RewriteRule ^ dir1 / page1.html $ [R=301,L]
RewriteRule ^ documents / awesome.pdf $ [R=301,L]

# Redirects anything that is not at the top of the home page

RewriteRule. * Https:// [R=301,L]

I would not suggest using the latter rule either. This is not a good user experience, nor a good SEO to redirect everything to the home page. It is best to use a rule to direct the URL to its exact equivalent:

RewriteRule (. *) Https://$1 [R=301,L]