Questions tagged [redirects]
A page, link or command that points URL requests to another URL in the world wide web. Redirects can be either server-side or client-side through the use of javascript.
1,474
questions
4
votes
1answer
161 views
What should I do about penalized websites that have been 301 redirected to mine?
Someone is doing a negative SEO attack on my site 301 redirecting toxic sites to my site. I have done research and nobody online seems to have an answer.
Would disavowing the domain doing the 301 ...
2
votes
5answers
299 views
How do I redirect a site for Google but not for users?
I have a saas app, where users can login to the app from example.com/app. Now I have created a new version of the app which will be example.com/dashboard.
What I want to do is let Google know that ...
1
vote
0answers
24 views
All HTTP URIs redirect to the HTTPs of homepage [closed]
I have an issue on my website, where all http URLs redirect to the https of the homepage. For example,
http://example.com/ppc-services/ redirects to https://example.com/
I have added this to ....
1
vote
0answers
18 views
Does Google penalize for redirecting too many expired domain to my site? [duplicate]
I used to 301 redirect expired domains to my site and now I think I made a mistake. If we redirect more than a single domain to a particular website, will hurt SEO?
0
votes
1answer
51 views
Is it necessary to hide affiliate links?
I currently include affiliate links on my pages. The links go to PHP files that in turn redirect to the affiliate pages using the following header code:
<?php header('Location: http://www.affiliate-...
1
vote
0answers
40 views
How do I handle server redirects on IIS to route requests to two different domains?
I have a domain www.example.com which is running on IIS server and the site content is in ASP.NET. I am migrating part of the site (www to www) to AEM and the rest of it will sit on old.example.com (...
2
votes
0answers
545 views
Redirecting in NGINX with masking target URL
I've set up redirection on NGINX with the help of this answer and now I want to set up it with hiding redirection from user, i.e. keeping original example.com.
Things I've tried:
rewrite
server{
...
1
vote
1answer
48 views
How to map many old URLs to a new host with a redirect under Apache cPanel?
I moved some of the content on my website to an external site. However, a lot of places on the Internet still link to the missing pages, resulting in 404 messages. What is the best method of ...
1
vote
1answer
18 views
New professional blog; should I redirect from my personal blog, or leave content both places?
I've been an on-and-off (mostly off) blogger for years, mixing personal interest and professional topics on a personal blog.
I've recently created a new professional website where I duplicated the ...
2
votes
1answer
2k views
Use .htaccess to remove a directory and .php extension from the URL
I am running a Wordpress website, but I have some folders not related to the wordpress CMS, but in the same directory where all Wordpress folders are.
The .htaccess in root WP folder has its standard ...
2
votes
1answer
735 views
Redirecting index.html to root + folder index.html to root folder? (multilingual)
I have example.com page. I want a homepage without index.html (example.com/index.html -> example.com)
RewriteEngine On
RewriteRule ^index\.html$ / [R=301,L]
RewriteRule ^(.*)/index\.html$ /$1/ [R=301,...
1
vote
0answers
62 views
Redirecting affiliate link: is it okay to add nofollow and noreferrer only to the affiliate link and not the pretty link?
I run a Wordpress website and normally use the plugin Thirsty Affiliates to redirect/cloak my affiliate links with a prettier link. Wordpress adds the noreferrer and noopener attributes to the pretty ...
2
votes
1answer
132 views
Why do my analytics report that index.php appears in URLs despite friendly URL rewrite rules?
On a website i use mod_rewrite and PHP to create clean URL's.
My .htaccess (summary) will look like that shown below:
RewriteEngine On
#oude pagina's
RewriteRule ^nl/links/(.*)/index.php$ /...
2
votes
1answer
143 views
Redirect hundreds of subdomains to the main domain with path forwarding, use .htaccess?
I want to redirect from a subdomain to domain along with URL path forwarding.
Example:
abc.example.com/products.html
TO
another.example/products.html
The trailing URL should be preserved.
We ...
2
votes
1answer
77 views
.htaccess, redirect all to bye.php, even with more slashes, with exception
I need,
in .htaccess, redirect all behind domain, but even with more slashes and with slash or no slash at the end, but with one exception.
For example
example.com/all/sites/should/redirect/to/one/...
1
vote
2answers
227 views
Redirect visitors to equivalent pages for a multilingual site without effecting SEO?
I have 5 language on my website
example.com (main page on English)
example.com/esp (Spanish)
example.com/ger (Germany)
example.com/ru (Russia)
example.com/it (Italy)
What the best way to redirect ...
3
votes
2answers
290 views
Redirect root domain to path
Searched all questions by redirect keyword (e.g. 1, 2) but none of them fit my case.
I want to redirect my domain (www.example.com) to another (sub-)domain including path and query if possible:
www....
2
votes
0answers
89 views
Google search console reports indexing my pages with pagination parameters even though they redirect
I recently saw in search console that Google is indexing some of my WordPress posts with pagination. For example example.com/post/page/2. The coverage report says "indexed but not submitted." It ...
1
vote
1answer
1k views
htaccess redirect based on referrer URL string
I have a 3rd party who POST's to a specific page on my website. They post a file and my site does some wizardry with the contents of that file.
The request URL would be for example https://example....
1
vote
1answer
63 views
Do redirects affect google analytics?
I have a website that redirects in the following manner:
https://example.com/drugs/paracetamol.html
http://example.com/drugs/new-paracetamol.html - 302
https://example.com/drugs/new-paracetamol.html -...
2
votes
3answers
417 views
Using htaccess to force HTTPS doesn't work
NEW EDIT 28/oct/19 ā
I edited the .htaccess file as you said
AddHandler x-mapp-php5.5 .php
# HTTP to HTTPS redirect
RewriteCond %{SERVER_PORT} 80
RewriteRule (.*) https://www.bebechan.net/$1 [R=301,...
3
votes
1answer
204 views
How do I redirect a subdomain with a wildcard?
I've an old subdomain that was being used as a whitelabel.
I'd like to redirect the subdomain to a page on my main domain.
I was thinking the best way would be a htaccess redirect.
RewriteCond %{...
3
votes
0answers
53 views
Redirected to www, but Google is indexing no-www without snippets, should I use noindex instead?
I started my blog a month ago and was using non www version for my website.
Then, I recently decided to stick to www.example.com version. So I changed it and Google has indexed the www version ...
1
vote
1answer
13 views
.htaccess HTTPS fowarding still redirecting to a folder which I have removed from the rule
I have the following simple code in my .htaccess file in order to forward my domain to the HTTPS version of the website:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://...
1
vote
1answer
35 views
See Google Analytics tracking stats from short cross domain redirect URL used in print media
I am using a different domain for some ads to track how many people access the main site through this domain.
How can I see this in Google Analytics?
I have DOMAIN A (on the ad) redirecting to ...
0
votes
1answer
195 views
Redirecting URL with & without query string?
If I setup a 301 redirect for the first URL path below will that also redirect all the paths below that contain a query string?
For example:
/6-light-oval-chandelier-espresso?pp=0&epik=...
1
vote
1answer
41 views
Finding URLs that redirect to a given website [closed]
Is there any way to find all URLs that (permanently) redirect to a given website?
E.g. example.redirect redirects to www.example.com. So I'd want a way to determine that example.redirect redirects ...
3
votes
1answer
114 views
htaccess conflicts
The issue that I'm currently forced to handle is related to a folder structure URL being redirected to the same folder structure URL but with a different string.
So page-a used to exist but that ...
1
vote
1answer
882 views
Google Search Console: URL is not on Google (page with redirect)
I have just created a personal website which I host as github page and recently hooked it up with a custom domain. (In this post I changed the actual URLs to webmasters-example.com and webmasters-...
2
votes
2answers
141 views
301 redirects for asp pages to html
So I've redesigned a site that was built comprising of solely .asp pages and redid it using .html pages. I deleted the old site and uploaded the new, and uploaded my .htaccess file with code along the ...
4
votes
1answer
46 views
Reorder parts of URL path to put date together using .htaccess redirects
old permalink:
https://www.example.com/2019/cat/subcat/10/25/post-name/amp/
new permalink:
https://www.example.com/2019/10/25/cat/subcat/post-name/amp/
How can I redirectmatch the old format to ...
3
votes
1answer
98 views
What is the Cloudflare equivalent of these two .htaccess redirect rules?
I usually set up my sites to rewrite URLs in the following cases:
All http traffic is redirected to https (and www), with a 301
All non-www traffic is redirected to www (and https), with a 301
In ....
2
votes
1answer
28 views
wordpress multisite htaccess redirect site to TWO subsites
EDITED:
I've split a website into two subsites in a multisite enviroment.
The old site was moved to a subsite, and renamed old.mysite.example.
This will be faced out at some point.
During ...
1
vote
1answer
102 views
Use .htaccess to redirect to add .txt extension
I have a .txt file on my hosting and would like to redirect to it if somebody enters an specific website within their browser, e.g.
example.com/webpage --> redirects to --> example.com/...
1
vote
1answer
4k views
How to mask redirect with Google Domains
For some reason, Google Domains does not have a mask feature. Is it possible to do this using custom resource records or synthetic records?
2
votes
1answer
69 views
How to rewrite using .htacess when there is a ? (question mark) at the beginning of the URL?
Many JS functions on my site are sending Ajax request to /?something=3213214 but I need to redirect them to /something=3213214
When I do:
RewriteRule ^test/(.*) /$1 [R]
It does redirect /test/...
1
vote
0answers
40 views
Why does turning off “Force SSL with https redirect” keep http links redirect to https?
I realize this question can be an XY one.
After upgrading my site from http to https, FB OpenGraph og:image not pulling images anymore. The solution seems to be using http links rather than https in ...
3
votes
1answer
337 views
HTTPD Redirect Doesn't Work with Environment Variables
We want to redirect users from an old domain to a new domain defined in an environment variable:
SetEnvIfExpr true SERVER_HOST_NAME=mynewdomain.example
The follwoing works in Apache 2.4 to redirect ...
2
votes
3answers
48 views
Merge a small site into a larger one while preserving SEO
I have a site with 10 pages of small tools for developers. I have a good traffic on it.
I want to move all site data to be part of another big portal (hub for developer tools). I also want to ...
1
vote
1answer
274 views
Using IIS URL Rewrite module instead of Global.asax for complex redirect rules
We have a legacy ASP.NET website in which complex redirect rules are coded in Global.asax. Actually this logic processes requests with several optional or variable parts like
{http|https}://[www.]...
1
vote
1answer
79 views
Stop URL tag redirection to my homepage
I'm trying to find a way to stop tag redirections to the homepage so that
https://example.com/?something stops redirecting to https://example.com.
Similarly, any URL which is followed by a question ...
0
votes
2answers
80 views
How to redirect example.com to http://example.com?
I have a blog at blogger.com, for which I got a domain name from godaddy.com. Recently I have decided to put some google AdSense ads on it to see how that goes.
The problem I encountered is that ...
1
vote
1answer
566 views
Multiple pages under single directory redirection to a single Page
I have the following scenarios for web page redirects
1) All pages under www.oldexamplesite.com/page/product/New-Design/* and All pages under www.oldexamplesite.com/page/product/nature-of-design-...
2
votes
1answer
23 views
Redirect root to subdirectory of current year if this exists, otherwise to a previous year that does exist
This kind of htaccess code is a little complex for me as I'm just beginning to understand redirects with htaccess. Could someone help me with this? Thanks in advanced.
0
votes
0answers
215 views
OVH active SSL for domains used for redirection
I have 2 domains: domain-a.example is my main website and domain-b.example is a domain used to redirect users to my main website (domain-a.example).
On my ovh dashboard I set the redirection from ...
1
vote
0answers
65 views
Considering changing URL structure from example.com/page?id=1 to example.com/1/keywords but wondering what SEO impact is
Currently our website has a variety of community generated content that is under the URL structure of example.com/page?id=1. Some of these pages rank quite well on Google due to a combination of ...
0
votes
1answer
30 views
Changed website from http to https: what to do in Webmaster Tools?
So now I have two domains in my Webmaster Tools, as I have migrated to HTTPS. Migration here means that I have enabled HTTPS and enforced it, that's it.
My question: should I do something in ...
1
vote
0answers
18 views
Old Url will no longer be available, how to redirect to new URL in IIS?
We currently have a site running of 2 URLs
OldSite.subdomain.domain.example
newSite.newDomain.example
There is the talk of getting rid of the 1st URL completely. Is there anything that can be done ...
1
vote
1answer
46 views
How to Redirect all subdirectory pages to another?
Due to duplicate content issue, I want to redirect all pages of /articles/* to newly created sub directory /article/*.
How do I redirect all pages of /articles to /article using .htaccess file?
1
vote
1answer
68 views
404 pages from the old site end up redirecting to the home page of the new site, why?
I am currently moving a domain from one to the other, this is not an HTTPS move but rather a move from exampleone.co.uk to exampletwo.co.uk. I am using this code:
<IfModule mod_rewrite.c>
...