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.

learn more… | top users | synonyms (2)

7
votes
8answers
2k views

Is there a safe way to redirect traffic from a dozen old websites to a new (unrelated) website?

Over the years I've built over a dozen unsuccessful sites. They get 10-100 visitors per day each. The topics include all kinds of random things - recipes, hiking tips, military equipment, gym bloopers,...
1
vote
1answer
9 views

Regional targeting on continent level, same language, 2 domains

I have a question concerning regional targeting of a website. I have 2 websites with exactly the same content and both in English (exact copy), but different domains: abc.example xwz.example I ...
0
votes
1answer
36 views

How to redirect and keep the previous URL with .htaccess?

I have created a subdomain and want to redirect it to a URL. But I want to keep the subdomain as the URL of the redirection. I have searched for it but none of them worked for me! Subdomain: ...
4
votes
1answer
48 views

Splitting an existing site into sub-domains and using a landing page with an http 301 - is this just wrong?

I currently manage a website for a large(ish) primary school. I'm in the process of rebuilding their website, and have had a thought today about how to potentially better organise the content. We ...
1
vote
1answer
17 views

Redirecting all traffic to a script

I am on Centos 6.5 with Apache2 and Perl 5.23. I need to pass all traffic to the single perl script, check this request in a database, and show needed content (have both static and dynamic content). ...
8
votes
5answers
5k views

Forcing SSL and www in .htaccess

I'm looking for a way to force SSL and www. I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: ...
1
vote
1answer
86 views

Replacing external links with internal links and redirect

I thought I read a while back that Google search rankings penalize pages with many links that go offsite. I believe the logic was that the content is deemed poor or less original if many links are ...
0
votes
1answer
66 views

Redirecting a domain to another that hosts a wordpress site, getting database errors

Originally I had mydomain.com.au, but then I let it expire as I cancelled my abn (Austalian Business Number). After that I started using mydomain.info instead to host my wordpress site. Recently I had ...
0
votes
0answers
32 views

How to do best for passing credit to unstable structure webpage?

I want to passing credit to webpage unstable structure, want to replace true url by redirect url(replace url by keyword, separate product name). Currently, I have many product display on same page, ...
0
votes
1answer
22 views

Should I add URL parameters to webmasters that only show flash message?

I have an paginated category URL that displays all items in a category. Each item has its own individual view page. In the event that an item has gone permanently offline I have implemented a 301 ...
-1
votes
1answer
77 views

How can i do multiple 302 redirects in htaccess?

I'm currently using the following to redirect only 3-4 pages to new a site # Use PHP5.4 as default RewriteEngine On RewriteRule ^news1\.html$ https://www.example.com/news1.html [R,L] RewriteRule ^...
0
votes
1answer
198 views

Subdomain redirect to WWW

I have the domain example.com and the test.example.com running on apache server. For some reason when I try to visit test.example it is redirected to www.test.example and by consequence a Server not ...
0
votes
1answer
38 views

Create A record from the terminal

I have contracted a linux VPS and a domain (www.myproject.com). After that, in the same site from my user area, I have registered a pair of DNS (ns1.myproject.com and ns2.myproject.com) associating ...
1
vote
2answers
103 views

How to remove Plesk websites temporary urls from Google index?

Google is indexing Plesk temporary URLs, I've tried the following tip but it does not block those URLs. Why Google indexed the preview URL of domain? I added this to .htacess with no success: ...
1
vote
1answer
58 views

How can I setup a redirect using an .htaccess that would keep part of the URL path?

I would like to setup a redirect using an .htaccess file which keeps part of the URL's path in the target URL. For example: I have the domain example.com. I want example.com/social to redirect to ...
1
vote
1answer
21 views

Should Server or App. Handle API Versioning Logic

My server redirects requests to a single front-end controller. Should it contain enough logic for mapping requests to different controllers based on version, or should the controller handle this logic?...
1
vote
1answer
52 views

A better method to save state between desktop and mobile site

This is something I want to fix for a long time. To begin, on my website I have a cookie named MDD and its set to 1 if the mobile detection has already happened. This is my code: RewriteCond %{...
2
votes
1answer
28 views

Vhost sends www.* to another domain

I created a virtual host at my server to host multiple sites, but I got a few unexpected problems. One sites doesn't gets recognized by the server and is redirected to another domain on the server, ...
0
votes
1answer
71 views

Moving subdomain to a different hosting provider

Currently my subdomain is hosted within same webhotel as my main domain. I would like to change it to point another domain (website on Windows Azure). Subdomain should be accessible all the time ...
5
votes
1answer
97 views

What might be causing my site's pages to load more slowly in these IIS Rewrite Module rules?

I have the following IIS rewrite rules that work exactly as I wish on both my development and live servers within an Orchard CMS website, though when enabled, seriously slow the site's page loads. ...
2
votes
1answer
31 views

My users are getting 302 Found page if they don't write https in address bar, how can I prevent this?

I host a forum website in DigitalOcean's cloud servers, using Ubuntu 16.04, Apache 2.4.20, PHP 7.0.8 and MySQL 5.7.12. I tried to troubleshoot with cURL about what is the problem, these are the ...
0
votes
1answer
16 views

Redirection of url [duplicate]

Is it possible to when a user type xxxx.com that the url change for www.xxxx.com or better that all request go to https://www.xxxx.com
3
votes
1answer
64 views

Should I redirect all strange URLs in Google Webmaster Tools?

Sometimes strange URLs pop up in Google Webmaster Tools. URLs that I know no one link to, like: http://example.com/apple-app-site-association My site is not about apple, apps or site association. I ...
1
vote
1answer
73 views

enable keepalive on apache 301 redirect pages

I want to make it so that every website on the server I manage (including my own website) will enable keep-alive on all (HTTP status 301) redirect pages including ones issued by apache modules. This ...
4
votes
1answer
52 views

Proper status code for language redirection (301, 302, … 307)?

I have build a websites with multiple languages. The URLs look like: http://www.example.com/en/ http://www.example.com/de/ If the user access the main domain http://www.example.com/ the web server ...
1
vote
1answer
17 views

TLD / Permanent 301 Redirect & Search Console, Not showing links - Links to Your Site

I did not get any answer in the webmaster forums so Im trying my luck here. So I got 4 TDLs that was redirected to a single new TLD. Some of the pages where redirected to corresponding pages on the ...
5
votes
2answers
57 views

How to redirect to a mobile site that doesn't have a 1:1 ratio to desktop site?

I have a desktop site with loads of old Flash games on it. Since there wasn't any way of easily porting that to mobile, I have a completely different mobile site with a different set of HTML5 content ...
2
votes
0answers
44 views

App opening standard browser instead of active browser [migrated]

Say you have a smartphone with two browsers, DefaultBrowser and OtherBrowser. You visit the webshop by opening Otherbrowser, and proceed through the cart steps At the end, you go from OtherBrowser ...
0
votes
3answers
43 views

Can backlinks to robots.txt blocked pages boost domain's ranking?

So, imagine, we were blocking some URLs via robots.txt, but apparently these pages were getting backlinks. Later, we decided to redirect these blocked pages to another domain of ours. ~1.5 month ...
1
vote
0answers
17 views

Using Xenu's Link Sleuth to remove bad 301's / broken page-local links

I'm trying to fix 2 issues based on the report from Xenu's Link Sleuth. I have numerous 301 Redirects from Wordpress SQL based URLs despite using post name URLs. Despite using post name based URLs ...
5
votes
1answer
94 views

Redirecting all child pages from subdomain

I can't get this redirect working... Can someone point me in the right direction please? On a WordPress site I want to prevent access to all pages that sit beneath a given parent page. All I want ...
1
vote
1answer
395 views

How can I create a 301 redirect with non-English characters in the URL?

I would like to do 301 redirect from http://www.test.de/kollektion/b%C3%BCgel%20bh to http://www.test.de/bhs/bugel-bhs+balconette. I tried to create a redirection rule, but it's not working even ...
1
vote
1answer
25 views

Redirect loop from two domain using the same .htaccess

How our FTP was setup, the root level is Website #1. Website #2 has it's own directory folder inside that root. Both websites refer to the same .htaccess. If I do Redirect 301 /example/ http://www....
3
votes
1answer
43 views

Can I “cloak” for crawlers and not use session id parameters and redirects to check for cookies?

I track my users using GET parameters to be able to do it even if they don't allow the use of cookies. And to do that, I need to do 2 redirections the first time the user hits my page. I am having ...
2
votes
2answers
27 views

301 redirect with Apache: All paths of URL to a single path

I am migrating a website from one platform to another, and in that process, I'm getting rid of the old domain name. There is no direct relation between the paths on the old and new website, and ...
3
votes
0answers
45 views

Blocking the ISP's ads appearing after a possible DNS grab and redirect via port 53? [closed]

Whenever I switch on my modem and try to connect to the internet, my ISP redirects me to their website. I'm assuming they are grabbing DNS requests and redirecting them using port 53. A video of it ...
3
votes
3answers
81 views

301 redirect in .htaccess - old URL includes ?page_id=

I want to 301 redirect several URLs from an old WordPress installation within one subdirectory to a new WP installation within a different directory of the same domain. I.E.: http://www.example.de/...
1
vote
2answers
34 views

Make domain 301 redirect to a static WordPress page

After adding a new page in WordPress i have this URL structure: domain.com/page. I would like to point a top level domain to this page using a PHP redirect: header( 'HTTP/1.1 301 Moved Permanently' );...
2
votes
1answer
46 views

Is it an SEO problem to link to short URLs that redirect to canonical URLs but put the canonical URLs in the sitemap?

I have a URL that I have added to my sitemap that reflects a health-tip entity http://www.example.com/health-tips/232344/this-is-perfect-for-your-health where 232344 is the id of the entity. ...
2
votes
2answers
92 views

Configure 3 domains in CloudFlare, with 2 redirecting to the first one, for a wordpress installation in openshift

My friend has 3 domains: example.com example.com.cc example.com.co The website is hosted at OpenShift and it's already redirecting example.com to it (using the guide in this answer). So far, so ...
2
votes
1answer
30 views

How to handle redirects to versioned content?

Given the situation that docs.foo.com/2.9 is the documentation for a product, revision 2.9 and docs.foo.com/3.0 is the documentation for a product, revision 3.0 Then you might want another URL docs....
1
vote
3answers
2k views

Side effects of using redirect pages to track external links?

I have been part of a push to implement better analytics on our company's web site over the last few months using Google Analytics. One request that has come in is for the ability to see clicks to ...
2
votes
1answer
199 views

How to redirect HTTPS to HTTP behind proxy (CloudFlare)

I want to redirect HTTPs to HTTP, I tried following code in .htaccess file Options +FollowSymlinks RewriteEngine on RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=...
2
votes
1answer
26 views

Client Provided CName record redirecting/forwarding to my domain with masking

I am looking for a solution to an issue that I have. In my scenario, I have a CName record provided by a client, www.example.com. When the user types in www.example.com, I need to redirect them to www....
0
votes
2answers
104 views

Redirect subdomain http:// to https:// - To many redirects

I'm trying to redirect http://sub.domain.com to https://sub.domain.com. I have turned the web upside down trying every .htaccess and PHP script out there, and all of them give me the ...
2
votes
1answer
390 views

change sitemap after 301 redirect

When I use 301 redirects for all URLs ... should i change sitemap URLs ??? ...... e.g: Sitemap contains bellow URLs example.com/cat/1.html example.com/cat/2.html example.com/cat/3.html Should i ...
2
votes
1answer
27 views

Redirect ALL requests to host IP

I have a honeypot running on AP so if anyone connects and try's to browse it will redirect to the root page. I am using dnsmasq to do this with the following entry log-facility=/var/log/dnsmasq.log ...
0
votes
2answers
55 views

Whats my IPv4 address if i only see my IPv6 on whatsmyip

I am trying to have my website redirect to my computer which I am going to host a Team speak server on. However I cannot see what my IP address so I am unable to redirect it there.
3
votes
2answers
30 views

301 Redirects for profile-based websites

I'll use the example of a dating website for my question. A member on the site has a profile that is active for a limited time, after which it expires (unless they renew their subscription). But once ...
2
votes
1answer
41 views

How to regex a url to redirect user

Using the regex and the .htaccess file, I want to redirect users to a certain URL. I want to redirect: http://www.example.com/* but not http://www.example.com/CDadmin/* I have tried the ...