Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [301-redirect]

Using HTTP 301 Redirect

1
vote
1answer
22 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 ...
2
votes
2answers
88 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
0
votes
0answers
37 views

magento 2 how to redirect disabled product to category page?

I want to redirect disabled products to the related category page. I have tried discontinued option which is available in admin but it is not working. How can I fix the issue?
0
votes
1answer
81 views

Rewrite rule for media images

we need to set rewrite rule for some images in Magento 2.2.5 using .htaccess rules or nginx conf Example 1 Request Path: https://www.example.com//media/catalog/product/cache/1/thumbnail/543x403/...
1
vote
0answers
16 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?
1
vote
1answer
24 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} ^...
1
vote
0answers
22 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 ...
0
votes
1answer
68 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/...
0
votes
2answers
854 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 ...
1
vote
1answer
230 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 ...
1
vote
1answer
147 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 ...
0
votes
1answer
88 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 ...
0
votes
1answer
49 views

File not found. After adding 301 redirect - Magento 2

I've added a permanent 301 redirect to my Magento 2 store to remove .html from my category and product urls by adding the following code to my website .conf file - I'm using Apache redirectMatch 301 ...
0
votes
1answer
225 views

301 redirect for multi website and store code added to url

I have a specific scenario to work with and need help. Currently I have set up for 8 years a Magento 1 multi website store with this configurations: Magento is installed in a subfolder of a domain ...
0
votes
1answer
125 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'; ...
0
votes
1answer
85 views

If request path is already exist what should i do for redirecting url with 301?

How to rewrite URL with 301 redirecting if request path and id already exist. There is any other option to do that or can we do with .htaccess file?
1
vote
1answer
335 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-...
0
votes
3answers
629 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 ...
3
votes
1answer
455 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 ...
1
vote
2answers
301 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.
3
votes
2answers
605 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, ...
0
votes
2answers
67 views

HTTPS 301 redirecting to http version

We have implemented https on our Magento store a few months back and everything seems fine exceptive noted that the server response for 301 redirects don't seem to be honoring the https:// ...
0
votes
2answers
2k 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 ...
0
votes
1answer
21 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 ...
0
votes
2answers
39 views

Redirects and SEO

We have a category that we make available for approximately 2 weeks every 2 months for a presale. Once the presale is finished I redirect the category to another using a custom redirect. What sort of ...
1
vote
0answers
110 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 ...
0
votes
1answer
822 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.
0
votes
1answer
225 views

301 Redirect links from old categories to the new categories

I moved my website from Opencart to Magento and also renamed all categories. So now I do have a lot of broken links that I would like to redirect to their new categories. For example I have : https:/...
1
vote
1answer
6k 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 ...
1
vote
0answers
171 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. ...
0
votes
1answer
106 views

home URL Key Redirect

I recently notice google is indexing my site one with /home and one without. clearly this www.test.come/home URL exist but i do not see this url in my URL rewrite in the back-end. what is the best ...
0
votes
1answer
181 views

How to redirect a link to another link 2 in magento

I have a blog page on this URL: http://159.203.70.155/index.php/blog/ and another page that have the same contents but different URL as this http://159.203.70.155/index.php/education-center. Now i ...
3
votes
3answers
2k 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 ...
1
vote
1answer
50 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, ...
0
votes
1answer
72 views

How to redirect category products to different website?

I have 100's of products that needs to be redirected to a different website when the customer clicks on a product on category page, because I want to sell them there. Is it possible with Magento. Can ...
0
votes
1answer
174 views

Different domain for different magento store view

I have a Magento installation in m.theseolounge.co.uk with English (default) and German store views. When the user select the German site I want to have the German view to display the URL ...
0
votes
1answer
1k views

Website URL Redirects using mod_rewrite in htaccess for Magento2.1 Bitnami LAMP Stack Not Working

I wanted to write redirect rules to remove index.php from incoming urls in htaccess.conf file(in my app folder) and replace it with the query params. I ensured my rewrite rule to be working perfectly ...
0
votes
0answers
344 views

Run magento site in subdirectory

I have magento in subfolder and running very well like below url:- www.site.com/myshop/ but for SEO purpose I want to run my magento site without myshop folder. I want to run my site like www....
2
votes
1answer
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 ?
1
vote
0answers
322 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: /...
2
votes
0answers
70 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-...
2
votes
0answers
555 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 ...
1
vote
2answers
896 views

Magento 2: 301 Redirects

How would I create 301 redirects from my old domain URLs to my new M2 site URLs?
3
votes
1answer
3k 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 ...
0
votes
1answer
676 views

301 Redirection on nginx server (thousands of 404 errors)

we have an issue with the website (using Magento, on nginx) as it has ~5k URLs returning a 404 error. Most of these are product pages. We need to make a 301 redirects for all these URLs, e.g.: ...
1
vote
1answer
37 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 ...
1
vote
1answer
969 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 ...
1
vote
1answer
633 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 ....
0
votes
1answer
578 views

Redirect for urls with filename and query string

I basically know how to import and redirect urls with the Magento URL Rewrite Tool. Now I have the case that I need to redirect shop/shop.php?blbla=238746t2345 to the product. I prepared and ...
0
votes
2answers
163 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/...