Questions tagged [url]

Denotes question about URL issues and custom URLs.

289 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
114 views

Allowing access to index.php/customer/account/login with nginx

I am new to Magento and have setup a new instance manually. I can see the home page successfully but am unable to access http://xyz/dev/index.php/customer/account/login/ and get a 404 error from nginx....
0
votes
1answer
146 views

Change of SEO Url for product and category URL

Magento version: 2.2.5 The categories are: level 1 level 1.1 level 1.2 level 2 level 2.1 level 2.2 when I go to level 1.2 the url shows up as mysite/level 1.2 But I expect url to be as ...
0
votes
1answer
499 views

Do simple products need an individual url_key set?

As we had controversial opinions about this on our project, I'd like to ask the question here for another opinion (or two): For Magento2, should we set url keys for simple products? Which of the ...
0
votes
1answer
769 views

Magento 2 show name instead of id in Layered Navigation

I'm using Magento 2, and on the category pages, on the left, where are listed all the subcategories, if I click on any of them, I get a link ending in: ?cat=id If I try to follow the same path from ...
0
votes
1answer
577 views

Inquiry regarding url_path product attribute

Product has an attribute called url_path. What is the purpose of this attribute ? When does it get populated with values ? When are this values used ?
0
votes
3answers
332 views

How to print a list of Magento 1 product urls in a table

I want to query the database for all products with urls starting "afr-" and print them on a cms page in a table. For example, the final printed table would look like: <table width="100%" ...
0
votes
1answer
714 views

How to translate URL in magento 2?

I read severals post here to translate the "customer/account" with something else. I have no idea how to do this for the "controller" account. I mean, If I change routes.xml like this : <?xml ...
0
votes
1answer
164 views

Multi domains for Magento 2

My website's default URL is: dev4.wetag.ca I added a second website to my Magento with the code: wetag_us I want to give it this URL: dev4.wetag.me SO I changed it's url in the admin panel ...
0
votes
1answer
81 views

Redirect from /en/page.html to page.html

How can I automatically redirect custom pages from this URL site.com/en/page.html to this URL site.com/page.html In order to avoid problems with Google Search Console?
0
votes
2answers
483 views

Shop by Brand/Manufacturer custom URL in M1

I am using Magento 1.9.3, and if i want to see on frontend only the products from a specific brand (manufacturer attribute), the url is something like: http://example.com/shop?manufacturer=4 ...
0
votes
0answers
122 views

1 Domain - 2 Stores - both of them in English and German - How to get Language Tag in URL?

Stores: - automobile - truck Languages: - German - English StoreViews Codes: - automobile German: auto - automobile English: car - truck German: laster - truck English: truck Desired urls: ...
0
votes
1answer
169 views

Magento 1.9 : Moved from subdomain to public_html now wysiwyg problems

I have moved my magento 1.9 from a subdomain to the folder public_html. This is now for my primary domain www.mydomain.co.uk I have changed everything that needed changing, also now adjusted the ...
0
votes
1answer
66 views

Why can't magento support unicode encoded urls for downloadable links?

I'm running the latest magento1.9.x I am attempting to use a webservice call to create a downloadable link to a url similar to http://dev-nffiles.somesite.org/folder/Temp/9781554132_NurseMgr%...
0
votes
1answer
389 views

Magento 2.1.7, 2.2.3 : wrong placeholder image url

I try created new product without image after that view in frontend the image url not true. I inspect element the url of image not true. .../media/product/placeholder/default/image.jpg lost catalog ...
0
votes
1answer
562 views

How to add row url?

I have created a custom UI component grid in admin. But there is no link on grid rows. How to add URL to rows in a custom UI component grid in admin?
0
votes
1answer
365 views

can't access website after adding store code to url

I am using magento 2.2.2 My store was working fine till I added store code to urls so I am no longer able to access my website using my website url mystore.com I have to add store code to access ...
0
votes
0answers
73 views

How to overwrite category page url to some specific cms page url?

How to overwrite category page url to some specific cms page url ? I have category with shop.html But i want to change or overwrite it on cms page i.e shop-cms. Even i want to make sure site-map ...
0
votes
1answer
232 views

Magento 1.9 add a fixed product prefix

First of all, did quite some research, but could not find the best solution in this case. For SEO reasons, we need to add a fixed prefix (with a slash) to all product URLs. Product URLs now look ...
0
votes
2answers
347 views

Add to cart url returns invalid url in magento1.9.0.1

My add to cart url returns this. When i click it the products doesn't get added because it's invalid. This happens in the homepage. http://localhost/mage/index.php/checkout/cart/add/uenc/...
0
votes
2answers
970 views

how to add product to cart by url?

I need a add to cart URL for add the product to cart by open this URL in any browser. I get the add to cart URL by this: Mage::helper('checkout/cart')->getAddUrl($simple_product) output of above ...
0
votes
0answers
295 views

add to cart url is not working

I used this as my code: Mage::helper('checkout/cart')->getAddUrl($product) It gives output of 'url' like this: http://192.168.0.78/pooja/testmagento/index.php/checkout/cart/add/uenc/...
0
votes
2answers
75 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
969 views

Magento 1 get product or category id by url string

I have url string. I need to detect if url belongs to product or category and get product or category id. I tried this, but it won't work: $vPath = 'http://dev.magento186.com/default/example/...
0
votes
1answer
366 views

Magento 2: Create a url like : localhost/magento/{frontname}/profile/id/5

I want to create a url like `localhost/magento/{frontname}/profile/id/5' so, i have created a controller file profile.php namespace Learning\HelloPage\Controller; use Magento\Framework\Controller\...
0
votes
0answers
39 views

url automatically redirect to my magento2 site

When user type url "xyz" that will automatically redirect to my magento2 website "https://mywebsite". How can I achieve this in magento2? Please help me to do this.
0
votes
0answers
149 views

Configurable product Url Not changing in magento 2

I'm trying to change the URL of my configurable products I have changed the URL through Product->search engine->urlkey But it's not getting effect on the product still loading from old URL
0
votes
2answers
520 views

Custom URL Rewrite If a condition is met

I'm looking for a way to change URLs if a condition is met. Something like: URL: http://mysiteurl/ $url = 'http://mysiteurl/'; if ($userGroup == 'ABC') { $url .= 'user/ABC/'; } The new URL ...
0
votes
1answer
283 views

Magento2 Add custom form in order view but url don't correct

I have a problem when add a custom tabs in order view. In new tabs, I have html form: <form action="<?php echo $block->getUrl('giftvoucheradmin/giftvoucher/addcodetoorder') ?>" method="...
0
votes
0answers
72 views

Incorrect page title - Magento 2.1.

For some reason when I access Login page I get on browser title "Payments". I searched everywhere for word "Payments" in my code and in Magento admin and remove it completely. The word "Payments" has ...
0
votes
0answers
30 views

URL inserted at the end of URL

I have a problem with url. I have an url http://example.com/ but css not work because search in http://example.com/example.comcss/... If I search a product directly insert: http://example.com/...
0
votes
1answer
334 views

Get Magento permalink URL for cart?

I used to use Shopify and the permalink to fill a cart was something like: http://domainname.myshopify.com/cart/370374:1,377854:1,37067790:1 Is there a similar way to do this with Magento? So far I'...
0
votes
1answer
3k views

Magento 2 - URLs trailing slash redirection

I configured my Magento 2 store to ends with trailing slash. This work great. But when I browse the same page without trailing slash, it redirects to a 404 error page, and not to the trailing slash ...
0
votes
1answer
254 views

How to change the URL on menu selection?

Iam working on magento 1.9 theme When i make a menu selection of " Jewellery " , the url shown is http://192.168.1.99/in/index.php/sports.html instead of http://192.168.1.99/in/index.php/jewellery....
0
votes
2answers
47 views

Magento 2 urls opening as images

I am having this weird issue. Whenever i try to open a product or add them into cart. The link gets opened but as an image. That is if product link is abc.com/product/123.html This page only has a ...
0
votes
0answers
62 views

Multisite getUrl not working on server

I have setup two site on localhost server. It's working fine on local. But on server it gives wrong url. It give base url on ajax call. When I use getBaseUrl it give right url Site setup. Website1 :...
0
votes
0answers
62 views

Plugin issue in Magento 2

I created an Plugin to change the category links from ?catId=xxx to the real category name. My Plugin look like this: class CategoryPlugin { /** * Url * * @var \Magento\...
0
votes
1answer
55 views

Static block store_url is appending a session id placeholder in url

Using a url in static block like this {{store url=door-machinery.html}} and getting this on the end ?<!--%20fpc%20session_id_placeholder%20-->. Any idea what's causing this and how to resolve?
0
votes
1answer
37 views

Trouble getting product URLs

After looking at various methods, the following code is almost getting what I want: $product = Mage::getModel('catalog/product')->load($product_id); $site_url = Mage::getBaseUrl(...
0
votes
1answer
30 views

CMS pages linked to from 2nd level category pages include category path in url and give 404

CMS pages (such as about-us, privacy-policy etc) link fine from root domain (such as domain.co.uk) and from domain.co.uk/category1.html. In this instance then the correct URL is domain.co.uk/about-us ...
0
votes
1answer
138 views

Magento 2 default suffix

I see Magento hasn't changed the default of the suffix in Magento 2 so my question is really why does Magento default to .html? I know you can change it but there must be a reason why its still a ...
0
votes
1answer
618 views

Creating an exposed endpoint URL for service returns in Magento 2

I'm writing an extension that utilizes web services and I need a way for those web services to send information back to the extension over the internet. Would I just use a controller like every other ...
0
votes
1answer
303 views

404 on all .html URLs

I am getting an nginx 404 on all pages ending in .html in my test instance, which is in a subdirectory at the root of production. For instance, /test/, /test/contact/ and /test/about-us/ are all good. ...
0
votes
0answers
19 views

Multi Store Product Sharing

I have two stores, MainStore and ValentinesStore They mainly have different products but on the ones that they share such as "Single Hearts" if I click on the product it switches stores. From: ...
0
votes
1answer
19 views

Getting URL for Products only works for first store

Hey everyone so I have two stores. They sell almost all different products except a few, this is where the issue comes into play. We sell a product called "Single Hearts" which I display in both ...
0
votes
0answers
430 views

Customize onepage/success url with observer

I must to add order_id to url of onepage/success page, I write this code, but it appears to be not working. <events> <controller_front_init_routers> &...
0
votes
2answers
158 views

getProductUrl() taking url without giving any url in magento 1.9

I have a custom product page and have a button too on that page below the product. I added a link on the product and the link is <a href="<?php echo $_product->getProductUrl() ?>"> ...
0
votes
1answer
407 views

URL index.php remove not working

I took my Magento store from a live site to a localhost. Magento's version is 1.7, and it's running over WAMP on my localhost. The homepage was working fine, but all URLs from there gave 404 error ...
0
votes
1answer
382 views

How to change the url for SEO purposes of a custom module?

I have the following url for a specific entity brands/index/view/id/1/ I would like to rewrite this url to: brands/{{ brand_title }} How is it possible?
0
votes
1answer
81 views

Create adminhtml url with key from frontend page magento

I want to create a link to a module of adminhtml in email sent from module of frontend of magento. I have taken reference from link: https://stackoverflow.com/questions/11450146/magento-generating-...
0
votes
1answer
213 views

added .html suffix to products & categories but they are not showing with suffix

decided to go from no suffix to adding the .html suffix in due to an easier time redirecting currently existing urls. all of my products had been imported without any suffix. when I switched the ...