Questions tagged [301-redirect]

Using HTTP 301 Redirect

Filter by
Sorted by
Tagged with
3 votes
3 answers
5k views

Magento 2: Bulk 301 rewrite imports

Read this great reference for creating a csv for import but this was for Magento 1 and it states you only need store_id, id_path,request_path, target_path, options but these headers won't work for ...
user avatar
  • 649
3 votes
1 answer
6k views

302 redirect issues. Page header shows 302 for all pages

If I use an online redirect checker like redirect-checker or seobook.com I do get a "SERVER RESPONSE: HTTP/1.1 302 Moved Temporarily" for all pages, even for the homepage. I tried to fix it by ...
user avatar
  • 405
3 votes
2 answers
158 views

Multiple URL Rewrites for the same product is SEO issue?

By default in Magento, while assigning categories to the product. The Magento itself creates a URL rewrites based on each category which all going to be redirected to same product page. Different ...
user avatar
3 votes
2 answers
1k views

Best practices of 404 product page redirection in magento

We have so many product which are no longer there in our website, but they are already crawled in google. I need to know what are the best practices to redirect them to any other page or something, ...
user avatar
  • 618
3 votes
1 answer
2k views

Bulk import and redirect 301 (over 14K url) in core_url_rewrite or on server

I have to redirect over 14K urls from another system to magento core_url_rewrite. What is the preferred method, to place these urls in database, or to redirect the ursl from .htaccess file ?
user avatar
3 votes
2 answers
772 views

Redirect from URLs with Query Strings

My old site had tens of thousands of no-longer-valid products with urls like http://example.com?product_id=123456. They are all search-engine indexed and now resolve to 404 in Magento. I cannot ...
user avatar
3 votes
3 answers
2k views

Redirection from observer not working (Fullpage Cache + APC turned on)

I am trying to redirect to custom url if certain url is matched using event: controller_action_predispatch a> Registering event: controller_action_predispatch <frontend> <events> ...
user avatar
  • 4,592
3 votes
2 answers
980 views

Magento: Delete products and 301 redirect to relevant it's parent category

Anyone have a solution for 301 permanent redirects for deleted products in Magento? I have a store with 5000 products. 4000 have been sold and will never be back in stock. I want to delete those ...
user avatar
  • 363
2 votes
1 answer
1k views

Magento 2 with Varnish sometimes does not redirect HTTP to HTTPS

Our Magento 2 is setup with https on all pages (unsecure and secure, "use secure on frontend", etc.). However sometimes when I enter ourdomain.com it redirects (correctly) to https and sometimes it ...
user avatar
  • 316
2 votes
2 answers
565 views

Redirect if homepage

Im trying to make the Homepage invisible since im doing an integration between 2 sites and the non Magento site handles the Homepage already. So far I achieved this temporally with a JS redirect but ...
user avatar
  • 7,303
2 votes
1 answer
2k views

Magento Product URLs are not preserving URL parameters

EDIT: This seems to have been caused by my CREARESEO extension. I had to uninstall to find that out since disabling the extension fooled me into thinking it was something else. I am working on ...
user avatar
  • 1,590
2 votes
1 answer
2k views

Why do special characters in search terms are processed as encoded characters (only on Production Server)?

This issue only happens once the site has been deployed to Production Server. On Development Environment works as expected. Using Magento 1.6.2.0 CE, Locale: español (Spanish) Search works just ...
user avatar
2 votes
1 answer
919 views

Issue with Magento 301 redirect on Nginx [closed]

As the subject states, I have some issues with my redirects. I have setup 301 to redirect non-www to www and changed it from the Magento EE admin panel too. For the root domain non-www works ...
user avatar
2 votes
0 answers
98 views

Magento 1.7 redirecting URLs when URL rewrite table empty and non in htaccess?

Im just cleaning up my site and sorting out all the 404s in webmaster tools. To fix the 404s I was just putting in a manual 301 in the htaccess file like this. Redirect 301 /football-rebounders/spot-...
user avatar
2 votes
0 answers
568 views

How can I perform 301 url redirection in Magento 2.0?

URL structure has been changed for one of product page in my Magento 2.0 webstore. Now I need to perform 301 redirection to newly created URL. Is .htaccess still helpful here? If yes then please ...
user avatar
1 vote
1 answer
9k views

Redirecting HTTP to HTTPS?

I've read into this quite a bit but can't seem to find a solution. I'm trying to set it so whenever someone visits a link for my site (and for whatever reason they don't include https it redirects to ...
user avatar
1 vote
2 answers
6k views

Magento 2.2.5: Admin login page redirect loop 301/302 after installing SSL and enabling HTTPS

Preconditions Ubuntu 18.04 DigitalOcean droplet Nginx 1.1.4 MariaDB 10.1.34 (MySQL 15.1) PHP 7.1 (Using FPM) Redis server 4.0.11 Steps to reproduce Download Magento 2.2.5 via Composer Install ...
user avatar
  • 654
1 vote
3 answers
3k views

Magento HTACCESS query 301 redirect all but admin

Hi hopefully someone can help. I have added a 301 redirect to change from an old domain name to a new domain. The magento build is still on the old domain also (but with no follow / no index) I ...
user avatar
1 vote
2 answers
2k views

301 Redirect Not Working. URL syntax bad for the .htaccess file? [closed]

I'm trying to redirect a few URLs. Other URLs work fine, but this group of URLs do not. Does anyone know what the issue is? I've tried to redirect through Magento and through the .htaccess. This is ...
user avatar
1 vote
2 answers
1k views

Htaccess - How can i make this redirect a 301 instead of 302?

My website redirects everything from http to https but 1 of the redirects is a none cacheable 302 redirect according to a few seo checkers i use. How can i get the following code to be a 301 redirect ...
user avatar
1 vote
2 answers
702 views

How to redirect users to specific page when they go to any pages?

How to redirect customers to custom page when they go to any other page. I have integrated OTP verification, I want to redirect customers to the verification page if they are not verified.
user avatar
  • 828
1 vote
1 answer
47 views

how can i change all urls of old website

i just remove my website from hmsaver.com to homemarket.ae now every thing is working but i want to ask is that possible if any visitor came from google to hmsaver.com and he redirect with same url to ...
user avatar
  • 11
1 vote
1 answer
648 views

Redirect 301 removing parameters in URL by .htaccess

In the file .htaccess in magento, I want to redirect a url with parameters. An example is this: https://example.com/presente/decoracao/teu-sorriso?PageSpeed=noscript I need to redirect this to the ...
user avatar
1 vote
2 answers
1k views

301 Redirect Multiple Url using .htaccess Magento 2

I'm trying to 301 redirect multiple urls to new url. Using .htaccess File. What changes i have to make in .htaccess
user avatar
  • 5,586
1 vote
2 answers
1k views

Magento 2: 301 Redirects

How would I create 301 redirects from my old domain URLs to my new M2 site URLs?
user avatar
  • 1,317
1 vote
1 answer
1k views

301 Redirects dont work with index.php in OLD URLs

I moved my old store to magento, Im using 1.9.2 CE Magento. Old store was up and running for years and I didnt want to loose SEO URLs, so when I try to do 301 redirects, Im facing a problem. If old ...
user avatar
1 vote
1 answer
658 views

301 redirect not working correctly with php in old URL

This url Redirect 301 /productdetail.php?pId=11390&base=1 http://domain.com/new-magento-url.html This works Redirect 301 /supertest http://domain.com/new-magento-url.html I can see it is the ....
user avatar
1 vote
2 answers
1k views

Magento makes 307 redirect to HTTPS instead of 301

I have set my whole frontend to use HTTPS. But in the headers I see that if I go to http://example.com Magento redirects me to the HTTPS version using 307 redirect. I tried to change this by setting ...
user avatar
  • 425
1 vote
1 answer
169 views

Auto 301 on category moves

I am looking for an automated method of producing 301 redirects after a category change. I have a client who is consistently moving his categories and does not want to manually input redirects in URL ...
user avatar
1 vote
1 answer
660 views

Nginx redirect for -only- homepage of old domain, to homepage of new domain

On the server.rewrites file within the nginx/ map, I have the following logic for redirecting the homepage of an old domain, to the homepage of a new domain: if ($http_host ~ ^(www\.)?olddomain.com ) ...
user avatar
1 vote
0 answers
27 views

Setup automatic product redirect once out of stock on M1

Is there an extension/module for M1 Enterprise that will manage redirects to a suitable category page once a product is out of stock and won't come back into stock?
user avatar
1 vote
1 answer
31 views

.htaccess redirect samplesitex.com to samplesitey/alias-page in both https and http variants

I am trying to redirect an alias url to a different url path. (it wont let me do this in cpanel for some reason) Example: SiteX.com > SiteY.com/this-page I have tried RewriteCond %{HTTP_HOST} ^...
user avatar
1 vote
0 answers
47 views

Magento 2: To set 301 URL in Magento URL rewrites for this particular search

How to set 301 URL in Magento URL rewrites? From https://www.example.com/catalogsearch/result/?q=%7Bquery%7D To https://www.example.com/catalogsearch/result/?q=query I have tried with below ...
user avatar
  • 1,725
1 vote
1 answer
437 views

Blocking RSS Brute Force 1.9

I noticed this weekend that someone was pounding on /rss/catalog/notifystock/ trying to brute force the admin credentials. I've added a line to the nginx vhost.d conf that returns 403 when you attempt ...
user avatar
1 vote
1 answer
1k views

Domain redirection in htaccess not working

I have changed domain on the Magento store, however I need to still keep old domain urls accessible and redirected to new domain urls. for example. old-domain.com/products should redirect to new-...
user avatar
1 vote
0 answers
122 views

export enterprise url redirects

I am trying to export all my URL redirects from my Enterprise Magento instance. Is there a way to do this in the Admin or a SQL statement I can use to export it as a CSV? I am unable to find it in the ...
user avatar
  • 11
1 vote
0 answers
266 views

Cloned site still going back to old url

Okay, I have two domains pointing towards the one server a '.com' and a .cymru. At first the .cymru domain was the main domain and .com the alias for it and I want to make the .com the main domain. ...
user avatar
1 vote
1 answer
56 views

URL Redirects -- Amazon Platform to Magento

Our company recently switched from the Amazon Ecommerce platform to Magento. The developers we hired did all 301 redirects to our new homepage versus directing to the specific product or categories, ...
user avatar
1 vote
0 answers
370 views

Magento 1.7 how to rewrite a URL with special characters in such as %20 etc

Someone at the company I work for has added a product in Magento and created a terrible URL with 's and spaces in. They must have entered the product name in the URL field. The URL looks like this: /...
user avatar
1 vote
1 answer
1k views

How to prevent duplicate content issues caused by index.php in urls?

I've been trying to prevent our homepage from displaying as both www.domain.co.uk & www.domain.co.uk/index.php but now i've realised that every other page displays with /index.php in the url. ...
user avatar
1 vote
0 answers
43 views

Magento 1.8 - Very strange issues with redirects caused by our hosts tech support team

We asked our hosts tech support to change the 302 redirects to 301's...after numerous attempts by them i gave up on them and accepted that they could not do it. Now they have left us where none of ...
user avatar
0 votes
2 answers
6k views

How can I programmatically perform a 301 redirect in Magento 2

Today I am trying to redirects 301 pro-grammatically. But I have problem from $this->_responseFactory->create()->setRedirect($CustomRedirectionUrl , 301)->sendResponse(); line. I have ...
user avatar
  • 3,886
0 votes
2 answers
227 views

Marketpress to Magento: 301 redirect using htaccess

We're moving a site from MarketPress (WP plugin) to Magento. Old WP site permalink structure is https://website.com/store/products/product-url Magento url structure is https://www.website.com/...
user avatar
0 votes
1 answer
441 views

How to do redirect in Magento 2

I want to redirect to specific page. I have created one script for testing but its not working. I am unable to redirect to another website url. try { require_once __DIR__ . '/app/bootstrap.php'; ...
user avatar
0 votes
2 answers
815 views

Strange redirect after Magento transfer from an old website to new website

I have moved my database and Magento files to my new domain as had problem with my old domain. I have changed the local.xml file to point to the new database and I've changed web/unsecure/base_url and ...
user avatar
0 votes
1 answer
129 views

Rewrite Rules to revert URL structure?

I've got a site which at some point in the past used SEO friendly category pagination for example : category/subcategory/40.html category/subcategory/4.html category/subcategory/15.html category/...
user avatar
0 votes
1 answer
176 views

Http to https 301 redirect

I am trying to enforce https on an existing magento website, so far so good, the website gets always correctly redirected to the https URL configured in the backend. As of my understanding the ...
user avatar
0 votes
3 answers
989 views

M2: How to redirect contact form page to CMS page

I tried to 301 redirect contact form page URL to custom cms page URL with Magento 2's rewrites, but it does not seem to redirect the URL for some reason. Is there some special trick to be done with ...
user avatar
  • 1,461
0 votes
1 answer
33 views

Migration from Squarespace to Magento Addressing 301 Redirects on Mass

Long story short, we want to add only .html at the end of every category for the purpose of 301 redirects. So an old category in Squarespace is like below: www.domainname.com/categoryname And in ...
user avatar
  • 1,013
0 votes
1 answer
1k views

Magento 2: Mass 301 Redirects for 404 Pages

I have a need in magento2 in Extension create like magento1 Mass / Bulk Redirects (301, 302, or any status) for Magento 404 Pages.
user avatar