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.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

apache .htacess redirect to treat root domain with or withought / as a single page not 2 page [duplicate]

I have developed a dynamic PHP website and code is written in core PHP (NO CMS or Framework used). When I am checking with SEO tools it is saying duplicate content for https://sattamatkaa.in/ and ...
0
votes
0answers
12 views

From an SEO perspective can you redirect away from an old site that cannot be reached to the new site

my client has an old site that cannot be reached. it was registered by a company that is out of business for at least four years, and the host and registrar will not allow the business owner to even ...
0
votes
1answer
35 views

How to make sure Google doesn't think index.html and homepage pages are duplicate content?

I have a website built with html CSS and JavaScript, its working on Firebase platform. I did a duplicate content test on siteliner.com, the results showed me 100% duplication between index.html file ...
0
votes
0answers
5 views

Redirect search.php to 404.php [migrated]

anyone knows how to redirect search.php to 404.php when no search results found? I've got more than 1000s of soft 404 errors due to this search feature. I just want to redirect nothing found results ...
0
votes
0answers
8 views

How to stop the IP of the server from redirecting to the domain if accessed directly?

So there is a site, that is behind Cloudflare so the IP is protected, but in addition to that, I want to make it so that if you have the IP and type it in the browser, it will not disclose the domain ...
0
votes
1answer
15 views

How to rename multiple files using .htaccess

I need to rename many jpg files. For expamle: warszawa_1.jpg -> wars_1.jpg, warszawa_2.jpg -> wars_2.jpg I created in the .htaccess file something like that: Redirect 301 /img/warszawa_1....
0
votes
1answer
15 views

Changed URL for a page that was indexed by Googlebot. Will redirect 301 from the old URL to the new one. But what to do with my Sitemap?

I'm planning to change a url for one of my site's page. Example: From: https://www.example.com/old-post-slug To: https://www.example.com/new-post-slug The fact is that Google has already ...
2
votes
1answer
31 views

Can I rewrite to a redirected URL using .htaccess file?

I have a page A. I want to have a page B which is served as a rewrite of page A using .htaccess. Is it possible to redirect page A to page B from .htaccess or is it going to go into an endless loop?
0
votes
2answers
23 views

Will I lose ranking if I redirect domain A to a page on domain B?

Basically, domain A is a single-page application and I want to redirect it to an identical page on domain B. I was wondering if the new page on domain B will rank just like how domain A ranked? or am ...
0
votes
0answers
28 views

Is it possible to redirect HTTPS to HTTP without warning?

One of my clients now doesn't want to use a SSL certificate. But the home page of their site has been indexed with HTTPS. I have already redirected HTTPS to HTTP but it shows a warning every time. Is ...
1
vote
1answer
31 views

SSL certificates: Does a secondary domain which does only redirect need a seperate SSL certificate?

Some customer gave me the input that if you have a website with a domain like https://www.example.com which has a lot of secondary domains only redirecting like https://www.example.eu https://www....
0
votes
0answers
7 views

Redirect users to a specific page if they go to a specific domain in the IIS

I have THIS.ABC.com and THIS.XYZ.com in the bindings for a site and they both work fine. I want the users going to THIS.ABC.com to be redirected to a specific page which tells them the site has ...
1
vote
0answers
22 views

How best to perform 4 million 301 jpeg URL redirects?

I certainly don't want to list 4 million redirects in my nginx config files... what's the best practice with a large number of redirects like this? They'd be permanent as well as the old links live ...
1
vote
0answers
22 views

Should an XML sitemap include redirecting URLs? [duplicate]

Should I include URLs that redirect in my site's XML sitemap? If page X is permanently redirected to page Z, would I include the page X, or only page Z?
0
votes
0answers
9 views

How can I created tracking redirects that are neither crawled nor indexed?

I have tracking redirects on my site. I use server-side tracking on them. They are used for things like: Advertisements Social media sharing The URLs are of the forms: /ad-click?id=12345 /...
0
votes
0answers
26 views

Can dynamic DNS clients keep “URL Redirect Records” updated at Namecheap?

Can a URL Redirect Record at Namecheap be updated with a dynamic DNS client? I would like to serve a website on a non-standard port, and thus cannot use a type A record. I would like it to work as ...
3
votes
2answers
42 views

How will geo-ip redirects affect which geo-targeted pages Google indexes?

We are an Indian company and have an online store. We sell in India as well as abroad. The products are sold at different prices in India and abroad and there are two site versions for Indian prices ...
2
votes
1answer
25 views

Redirects for both paths and posts in the path

I rarely need to do redirects and when I do they're usually simple. This time I'm trying to do something a little more advanced and I'm stumped. Regex is hard :) This is a WordPress site and I'm ...
2
votes
1answer
223 views

Redirect all subdomains from one domain, to the equivalent subdomain of another domain using DNS and nginx?

I have foo.example and bar.example. I want sub.foo.example to redirect (not be aliased with) sub.bar.example, same for asdf.foo.example and asdf.bar.example, etc, for all sub domains. I know I can ...
3
votes
1answer
86 views

How can I redirect my Google App Engine naked domain to www and preserve the URL path

Google Adsense now requires a file "ads.txt" in the root of the domain: Upload the file to the root level domain of your site (for example, https://example.com/ads.txt). I use enom with Google ...
1
vote
1answer
26 views

Does a redirected URL used in an anchor count as backlink?

If another website puts an anchor to our app to https://URL1 and this link redirects to our website at https://OURCOMPANY, does Google count this as a back link to our website?
2
votes
1answer
68 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
86 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
23 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
42 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
24 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 (...
1
vote
0answers
44 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
41 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
260 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
73 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
33 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
94 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
45 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
67 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/...
3
votes
2answers
65 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....
0
votes
0answers
24 views

Wordpress with Ecommerce Software on Subdomain

I've just finished building a wordpress site for the company I work for. The original plan was to build out the store with woocommerce. However we have over 11,000 products and orders need to work ...
2
votes
0answers
47 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
394 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
33 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
154 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
99 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
47 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
19 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
63 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=...
0
votes
0answers
30 views

Finding URLs that redirect to a given website

Is there any way to find all URLs that (permanently) redirect to a given website? E.g. www.ubercab.com redirects to www.uber.com. So I'd want a way to determine that www.ubercab.com redirects without ...
3
votes
1answer
53 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
384 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-...

1 2 3 4 5 28