Questions tagged [301-redirect]

301 is the HTTP status code for a permanent redirect.

Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

What does the '^' mean in “rewrite ^ http://example.com permanent;”

I found some configuration of nginx contains: if($args ^~ post=140) { rewrite ^ http://example.com/ permanent; } What does the ^ mean in rewrite ^ http://example.com/ permanent?
3
votes
3answers
200 views

How important is it to 301 redirect forum posts

I am going through the process of porting all forum data from PHP to ASP.net, it's quite a long and difficult process. There are around 30,000 threads, it's been online for quite a few years. How ...
3
votes
2answers
3k views

nginx http to https redirect - just isn't working

I am running my own webserver with nginx on ubuntu 17.10. I have opened ports 80 and 443. Trying to get the HTTP to HTTPS redirect working, but everthing i seem to have tried fails. i am still ...
3
votes
1answer
302 views

Is a zero second meta refresh tag to 301 a Blogger post a proper solution?

Blogger does not offer a possibility to 301 redirect a post (or the whole blog) to an external domain name (say mydomain.com). One is suggesting to use some zero second meta refresh tags in the header ...
3
votes
1answer
771 views

How to redirect URLs with a specific IDs to new URLs on a new domain name?

I want to redirect all pages where there is a specific word inside in the URL. Both websites have the same articles. For example: videos.example.com.ph/its-showtime-hashtags-hashtags-and-dawns-...
3
votes
1answer
927 views

When redirecting HTTP traffic to HTTPS, is it OK to redirect non-existant pages to a 404 error?

We've recently converted several of our websites to require HTTPS on all pages. HSTS headers have been set and rules added into Apache to 301 redirect all traffic from HTTP to HTTPS. However, similar ...
3
votes
1answer
123 views

Can I switch 301 redirect direction from A->B to B->A and how does it affect SEO?

I have a blog that has been up for a few years. It doesn't contain a great number of pages but the domain name contains two keywords that I want to rank for, like keyword1-keyword2.com. I have ...
3
votes
3answers
711 views

Is there a way to download the Google index for my website?

I have a client that's launching a new website on their current domain. I don't want to lose their SEO rankings, so I need to ensure that all the old, indexed content gets properly redirected to the ...
3
votes
1answer
3k views

301 Redirect a domain to another domain, but keeping the subdirectories the same

Is it possible to configure a top-domain (http://x.com) (DNS/.htaccess/else?) to redirect to another domain (http://y.com), whilst if you navigate http://x.com/subdir/index.html, you'd see the files ...
3
votes
2answers
130 views

Should I replace non-user friendly URLs with friendly ones, and if so, how?

I have just added my site to Google Web Master Tools and discovered that some links (for example: In the section "Search Query / Top pages") have a URL format like: example.com/page.php?id=1234 This ...
3
votes
1answer
2k views

Should I change the URLs in the XML sitemap after 301 redirecting them?

I am using 301 redirects for all URLs. Should I change sitemap URLs now? The sitemap currently contains the following URLs: example.com/cat/1.html example.com/cat/2.html example.com/cat/3.html ...
3
votes
3answers
918 views

Fastest way to redirect dead URLs to home page

A client of mine scrapped his entire wordpress site of many years for a custom CMS. The URL structures both use the /<post_title> format, so a pattern based .htaccess rule is out of the picture ...
3
votes
1answer
200 views

301 redirects… www. > http … the entire sitemap

I submitted a duplicate sitemap some time back to incorporate the www. addresses when I saw my site was not directing there when I typed it directly in the address bar. As I have edited my site and ...
3
votes
4answers
2k views

301 redirect to different directory on Yahoo Small Business Hosting without .htaccess

I have a website hosted with Yahoo Small Business Hosting, and I don't have access to use a .htaccess file. I have around 220 pages in a folder mysubfolder (http://example.com/myfolder/mysubfolder) ...
3
votes
3answers
4k views

Rewrite in Mediawiki, remove index.php, .htaccess

I've just installed Mediawiki on Apache and I want the URL should be: localhost/Main_Page/ localhost/Special:Recent_Changes ... instead of: localhost/index.php/Main_Page/ localhost/index.php/...
3
votes
2answers
821 views

Apache HTTP redirect from a URL list

One of my web applications will be completely replaced by a new system. All URLs will change and thus external links would break. I want to setup Apache httpd to answer with proper 301-redirects to ...
3
votes
1answer
78 views

How to have my customized extension?

I have recently found a .htaccess trick in which I can remove file extension from the URL, example.com/file.html looks like example.com/file Now my humor says that I can replace any extension to my ...
3
votes
1answer
94 views

Redirecting to a default (or last visited) subdirectory. Does Google like this?

i have a site that has 3 web applications, lets use this example: example.com/nicy example.com/mash example.com/zoken The main application is nicy, so if the user comes for the first time (or if ...
3
votes
2answers
212 views

Where should I redirect (removed) phishing pages

I was unfortunately the victim of a PHP exploit. Looking through my webserver logs, people are still attempting to reach the URL used in the phish. I want to redirect them to a site that will educate ...
3
votes
1answer
160 views

Is it ok to use 301's this way?

I installed a forum, which has a page for member info. I want this to link to my main sites member info page which is a lot more detailed and interactive. The forum membership page has the url: ...
3
votes
1answer
773 views

Is it possible to create a 301 redirect and MX records at a naked domain?

I'm wondering since I found out that creating a CNAME and an MX record is not allowed. I want to create a 301 redirect from example.com to www.example.com, and have email with @example.com addresses. ...
3
votes
1answer
288 views

nginx: 301 redirect to non-www, SSL urls on default_server(s)

My goal is to have nginx primarily return a check for all requested URLs that start with http:// and/or contain //www., and 301 redirect them to the URL where //www. is replaced by // and http:// ...
3
votes
1answer
152 views

Why would googlebot be trying to crawl a URL “https://www.example.com/https://www.example.com/other/things”?

I've been trying to clean up crawl errors on my company's website. In one menu, google bot is trying to crawl every link with an extra-base URL attached. These pages (perhaps obviously) don't exist ...
3
votes
1answer
257 views

HTTP website returns 403.4 even when using Plesk Permanent SEO-safe 301 redirect from HTTP to HTTPS

My domain has a valid and activated "Let's Encrypt!" certificate, and going to https://example.com works as it should and shows as being secure in the browser. Through Plesk Onyx 17.5.3 I have ...
3
votes
1answer
67 views

How do I deal with Google indexing variations of my URLs that are not supposed to exist?

My site has this page (URL) that actually exists on my site example.com/ranking/rankings-of-nike-running-shoes but somehow I can see the following versions in SERPs (these URLs are not physically ...
3
votes
1answer
584 views

When 301 redirecting a page, what needs to be in the sitemap?

In sitemap there was page a.html which has some PageRank. Now a.html is redirecting to b.html using 301 and sitemap has b.html entry, a.html is removed. Queries are: As a.html is not in sitemap ...
3
votes
1answer
156 views

Getting the redirected page to show up in SERP instead of the target

I have a site that is listed on a sitebuilder site with their own domain which in this example lets call this siteA.com/myaccountnumber/index.html. I've purchased a domain siteB.com and I've setup a ...
3
votes
1answer
161 views

70K of 301 redirects

I have a website with about 1.5M pages. I am condensing pages that do not have large amounts of content to improve the quality of the site. As a result I have about 70K pages that I have added a < ...
3
votes
2answers
397 views

Migration Joomla to Codeigniter - GWT reporting lots of 404's - How to fix

I recently created a whole new fitted system structure for a site previously running on Joomla 1.5 CMS. They wanted something more simple and elegant, and their back-end was a mess of modules and ...
3
votes
2answers
251 views

How does duplicate file and directory names affects SEO

I have some 40 crawl errors in my website, those are pointing to files which are not existing. and I want to resolve all 404 errors I dont have acccess to .htaccess file. Because i am on shared ...
3
votes
3answers
350 views

Will my traffic come back after my site redesign? [closed]

I screwed up. I launched my site after rebuilding it without setting up the proper 301's and traffic immediately dropped about 60%(it's not really something I thought about). After about a week and a ...
3
votes
2answers
179 views

.htaccess Redirect 301 in Wordpress – From Post to Page

By default, Wordpress posts are added to RSS feed. For my website, I want to include Wordpress pages to RSS feed. I know that some plugins could help me. Instead, I try to use redirect 301 in ....
3
votes
1answer
291 views

How can I redirect all files in a directory that doesn't conform to a certain filename structure?

I have a website where a previous developer had updated several webpages. The issue is that the developer had made each new webpage with new filenames, and deleted the old filenames. I've worked with ....
3
votes
1answer
1k views

I'm using a CNAME to send www. traffic to domain without www. Will this hurt my SEO? [duplicate]

Possible Duplicate: Does the “canonical name” in DNS make any difference to search engines? Mu understanding is that CNAME should be used for subdomains and www is just another ...
3
votes
1answer
760 views

Does redirecting old site's URLs to new site's front page hurt a page's ranking?

An old site that is being rewritten needs to have it's URLs redirected to the new site. There are a few hundred pages that may or may not have corresponding pages on the new site, probably with ...
3
votes
1answer
1k views

For SEO, is a 301 or 302 redirect better for affiliate links?

For SEO, is a 301 or 302 redirect better for affiliate links? Are there any benefits/drawbacks for either? PriceGrabber uses 301 Shopzilla uses 302 Nextag uses 302
3
votes
1answer
46 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 ...
3
votes
1answer
456 views

Non WWW redirect to WWW and non SSL to SSL - htaccess

I'm trying to redirect my Wordpress site from non www to WWW and non SSL to SSL permamently. Here's the code I'm using: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{...
3
votes
1answer
742 views

Full domain .htaccess 301 keeping same paths, but also redirect some URLs to different paths

I believe the following code will redirect my old domain to my new domain keeping the same URL paths. RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.newdomain\.co.uk RewriteRule (.*) https://www....
3
votes
1answer
1k views

How to redirect all (www).example.(com/net/org) to https://example.com

How do I setup any URL/URI for http(s)://(www).example.(com/net/org)/somepath to end up at the corresponding: https://example.com/somepath I'm guessing that the solution (if there is one), will ...
3
votes
1answer
1k views

URL-path with encoded question mark results in incorrect redirect when copied to target URL

I have a simple RewriteRule, appending a string to some URLs: RewriteRule ^labels/([^/]+)/?$ /labels/$1/releases/ [R=301,L,NC] The links are database driven, and this is working very well. Well, ...
3
votes
1answer
32 views

Redirection of page with # to a new page

I am trying to redirect http://www.example.com/#blog to http://www.example.com/blog in WordPress but it doesn't work since the /#blog part is considered part of the homepage. Did you encounter this ...
3
votes
2answers
627 views

Google App Engine 301 Redirect

I have a Google App Engine Java web app that I have setup with a custom domain from GoDaddy. The site can currently be reached at domain.com and www.domain.com. I am trying to have a 301 redirect ...
3
votes
3answers
467 views

Does it hurt SEO to have a language redirect before 404?

I have a Django website with activated translation middleware for several languages. If a user tries to open example.com/abc this happens: the middleware detects the user language (from cookie, ...
3
votes
2answers
869 views

Is duplicate title tags an issue when they're redirected?

According to Google Webmaster Tools, I have a number of duplicate title tags. This happens because my products all have two URLs: /products/product and /product/product-category/product. /products/...
3
votes
1answer
848 views

Trying to add cache header to 301 pages made by ModRewrite

I have several URLs on my website that get redirected to other URLs using Mod-Rewrite. For example: RewriteRule ^section$ /newsection [NC,L,R=301] The above rule redirects http://example.com/section ...
3
votes
2answers
65 views

Can we preserve our old domains Pagerank but cut all ties with the old domain such that it doesn't redirect?

Here's the situation - a client of mine has recently changed their company name and have changed their web address. They want to completely cut all ties with their old brand, so they have told me that ...
3
votes
1answer
138 views

changing URL format afftects SEO reputation and not considering 301 redirection

We had URL http://www.example.com/category/subcategory.html which changed to http://www.example.com/category/filter/cat/subcategory.html We did 301 redirection, updated canonical URL to new one also ...
3
votes
1answer
10k views

301 redirection removes UTM tags from URLs

A page redirects to another page using a 301 redirect in a .htaccess file. If I try to access the page from a URL with UTM tagging, after redirection, it removes all UTM tagging. Is this normal ...
3
votes
1answer
55 views

Can we 301 redirect to a new page, but still publish the old content somewhere else?

We have a page on the site which ranks well for an SEO term (top 5) but contains old information. We have added a new page but Google doesn't rank it that well. Information on these pages is time ...