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 [url]

Denotes question about URL issues and custom URLs.

1
vote
1answer
12 views

Category name on product url still working after “Use Categories Path for Product URLs” set to no

"Use Categories Path for Product URLs" set to no on admin panel But everytime I create a new product, it creates rewrite also for category/product url So both of them work: example.com/category/...
0
votes
0answers
14 views

I can't get rid of the page URL key in my store homepage

Concisely, my store homepage shows the URL key "/home" and I can't get rid of it. If I browse the store root "www.website.tld/" I get an error "Too many redirects". I have already checked almost ...
2
votes
0answers
21 views

Magento 2 EE remove url trailing slash through htaccess

I am using below code in htaccess to remove trailing slash in urls. But after adding this code my admin panel stops working and shows error - Too many redirects. I don't know whether to place this ...
1
vote
0answers
21 views

How can I get all filter combinations and their links for all categories in Magento 2?

I have a problem and I do not know how to solve it. The client wants to get links of all filter combinations for the category, and make a check on index and follow. And if there is a parameter index ...
0
votes
0answers
14 views

Magento 2.1.8 EE old blog urls also working issue

I have installed a new blog extension and set URL format for a blog post like siteurl/blog/article name. I have disabled the old extension. Done setup upgrade , static-content deploy, recompiled, ...
1
vote
0answers
16 views

Opening product from category url is much slower than loading it from product url

So I have a product named A. If I open A from it's own url https://mymagentowebsite.com/A.html it opens fast because it's cached. However, if I open the product from the category url https://...
0
votes
1answer
25 views

how to use geturl function to custom page in php value in magento 2

<a href="<?php /* @escapeNotVerified */ echo $block->getUrl( 'mpquotesystem/sellerquote/quoteedit/id/404/', ['...
0
votes
0answers
9 views

How to switch the primary domain on Magento 1.9.4?

Magento 1.9.4 Porto theme I installed a brand new installation of Magento 1.9.4. It is for a site/domain that is live elsewhere. I installed and configured the theme, imported products and customers. ...
0
votes
1answer
37 views

I want to use php scandir in a phtml

I want to use this in a phtml: <?php $kataloge_dir = '../media/downloads/dlbereich/kataloge/'; $kataloge = array_diff(scandir($kataloge_dir), array('..', '.')); $kataloge_thumb_dir = '../...
0
votes
1answer
40 views

Passing the Product id and form key but not adding to cart in magento2

passing product id and form key through url but product not added to cart in magento2. http://127.0.0.1/magento2.3/checkout/cart/add/uenc/...
1
vote
1answer
30 views

Magento 1.9 get current url

I want to get Current URL in Magento 1, using observer function, that observer triggered on the AJAX controller action. In the observer function, I tried like :- $currentUrl = Mage::helper('core/url'...
1
vote
1answer
37 views

Magento2 - Is it possible to get specific store url in cms block?

I am trying to get store URL or base URL for a specific store in cms block. I have tried {{store _store="1"}} Also, {{config path="web/secure/base_url"}} I wanted to know if this is going to work ...
2
votes
1answer
18 views

how to create more then one submit_url in ui_component Magento 2

I need to submit data from ui_component to another class so I created two buttons and on one I set the submit_url and works perfectly but in other class I cannot get the data to perform some ...
0
votes
0answers
35 views

Cart and checkout URL Change in magento 2

Change url of final Checkout page from https://example.in/onepage to https://example.in/checkout Change url of thank you page from https://example.in/checkout/onepage/success/ to https://example.in/...
1
vote
0answers
13 views

SEO category path [closed]

Which is the best one and why? www.example.com/women/pants (used by ASOS) www.example.com/women-pants (used by Zalando)
0
votes
0answers
50 views

Magento 2 Wysiwyg editor adding admin/cms/wysiwyg/directive links to store url

I am adding {{store url="about-us"}} to CMS block page but it ends like below http://192.168.1.72/pneumatic-plus-categoryprototype/admin/cms/wysiwyg/directive/___directive/...
0
votes
1answer
29 views

Magento2 : How to modify the store view url?

How to change the magento store view url? For example change "?___store=en" to "?lang=en".
0
votes
0answers
57 views

Magento2 - Get store url for specific store in static cms block

I have multistore website in Magento2 Now how to get the above store-specific urls in static block by using the {{store url=""}} Right Now the above url fetches the current store url but i want ...
0
votes
0answers
16 views

How to add a product to cart via URL on a website that uses magento?

I wanto to know how to create a "add to cart link" on a website that uses magento.
1
vote
1answer
21 views

Removing (hiding) Magento system URLs

I am pretty sure there has to be a simple way to solve, but I just cannot find it. So, by default, there are 2 types of product rules at my store: mystore.com/catalog/product/view/id/177 mystore.com/...
0
votes
3answers
41 views

Get browser URL magento 2

I want to get URL which is passed in the address bar but problem is that in my .htaccess there is a code for the rewrite I don't know for that reason or something else I got other URL which is not ...
0
votes
1answer
81 views

Magento 1.9 - Mage->app()->getRequest()->getParam() not working

I am fetching the URL params as below. Mage::app()->getRequest()->getParam('test'); Debugging with echo before the above statement, it works fine. But placing echo after this statement return ...
0
votes
1answer
38 views

How to redirect to shop after logged in user in Magento 2

public function execute() { if ($this->session->isLoggedIn() || !$this->formKeyValidator->validate($this->getRequest())) { /** @var \Magento\Framework\Controller\Result\...
1
vote
0answers
16 views

How many ways are there to create a controller and what are they?

I have been developing with Magento 1.9 for the last two weeks. I have found several problems to develop each project (probably because my first project with magento had a high level...). I come ...
1
vote
1answer
112 views

Magento 2.3.0 WYSIWYG editor's image not loading on frontend

we have created some category's custom attribute of WYSIWYG editor type. While we are adding image in these custom attribute's editor, they are showing/loading fine in admin section but while we are ...
1
vote
1answer
29 views

how fix invalid url in magento

Invalid base url type Trace: #0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Store.php(620): Mage::exception('Mage_Core', 'Invalid base ur...') #1 C:\xampp\htdocs\magento\app\Mage.php(382): ...
0
votes
1answer
19 views

Product translated URL for iframe purposes

I am working on a 1.9.x version of Magento, I've just translated the products of my catalog for a PT-BR language and I was needing the products URLs in order to insert them on a iframe of a specific ...
0
votes
1answer
45 views

What is the ajax url if

help, what will be the ajax url if method is in: /app/code/core/Mage/Adminhtml/controllers/CmsBlockController.php ?
2
votes
2answers
45 views

In Magento 2,I can't Open Categories With New URL

If I add new URL then it's showing 404 error when it open frontend side.If it open with old URL it's working. For Ex. I have added new URL "business-card-gift-card-holders123" for category.It's ...
0
votes
0answers
39 views

How to remove /magento2/ parameter from URL?

Current URL : http://localhost/magento2/rest/V1/products/options/types I want to use without /magento2/ i.e. http://localhost/rest/V1/products/options/types I am using XAMPP server with ...
0
votes
0answers
33 views

Products just redirect to search results page

All of my products are now redirecting to catalog search. i.e. /bonfire-firma-3-in-1-stretch-mens-snowboard-jacket-2019.html goes to /catalogsearch/result/?q=bonfire-firma-3-in-1-stretch-mens-...
0
votes
1answer
104 views

Magento 2 Duplicate Product URLs Problem

When creating products in Magento 1 the url was created from the product name, and if there were duplicate product names M1 would add a numerical suffix to the end of the URL. Since it seems this is ...
0
votes
0answers
16 views

Remove Auto-generated URL Rewrites

I've been having this issue with auto-generated URLs. The catalog/* URLs keep auto-generating the red box are the URLs that auto-generate, the green box are the URLs that I want. How do I stop the red ...
0
votes
2answers
83 views

Change Default Web URL

I want to change the url of the index page for magento 2 store. I changed the Default Web URL to "custom", but when I go to site.com/custom it gives me a 404 and the index page is still site.com/cms
1
vote
2answers
62 views

What does this pattern match when filtering strings for URLs

What exactly is this line for preg_replace('#[^0-9a-z]+#i', '-', parent::filter($string)) in the following method in \vendor\magento\framework\Filter\TranslitUrl.php: public function filter($string)...
0
votes
0answers
52 views

Magento 2 product url key saving issue

I am trying to save product url key.When i open product admin product url key is empty for some products so i am trying to place url and saving product product is saving but url key field not changing ...
1
vote
0answers
16 views

Magento 2 - “url_key” Product Attribute, force as required and unique

Is it good practice to force the "url_key" product attribute to be both "required" and "unique" by default? update eav_attribute set is_required=1,is_unique=1 where attribute_code = "url_key"; As ...
0
votes
0answers
20 views

Which url is better to use

We have a : Checkout Page Select address Order summary three different pages. Which way of representing the urls is better.But using a slash is sub directory. Can we have the url like this : ...
0
votes
1answer
35 views

Get second last url in Magento 1.9

How can we get the second last url in Magento 1.9? I currently use this: <?php echo Mage::getSingleton('core/session')->getLastUrl();?> To get the last URL. But I want to get the second ...
0
votes
2answers
69 views

Magento 2: Category URL for frontend

I have created a root category with name colors in Magento 2. I am trying to access this category by URL http://domain.com/category/colors.html in front end. But its not working for me. What will the ...
0
votes
0answers
41 views

Need to remove Currency name(ie \gdp or \usd) from url in magento

I am new to Magento 1.9 I m trying to remove currency name from url and at the same time setting canonical url
0
votes
0answers
29 views

Is it possible to generate unique URLs when using Magento\Catalog\Model\Product?

I am using Magento\Catalog\Model\Product to save products in a loop. When i have multiple products with the same name $product->setName($name) i get the following error: Fatal error: Uncaught ...
1
vote
1answer
44 views

How to get current page url in static blocks

I want to get my current page URL in one of my static blocks How do I get that?
0
votes
1answer
69 views

Google still crawls url while i disallow from robots

I will go straight to the point. Recently I did several fixes in my robots.txt file, and I've added several disallows like these: Disallow: /review/ Disallow: /catalog/product/view/ the problem is ...
0
votes
1answer
25 views

Magento 2 : Update url to domain

I'm using an Instance of Ubuntu 16.04 lts on Google to run a store, but I'd like to point to my domain. Wich line on Apache2 should I update?
0
votes
1answer
17 views

Magento Multisite links go to wrong domain

I have created a new website within my Magento (1.9.3.10) I've created a home page and got the menu visible. When you click on a Menu item, it links to my other website domain, showing a 404. I have ...
0
votes
1answer
30 views

Magento 1.9 - Layered Navigation Links Ending with ?cat= or ?brand=

I am working on URL issues for a customer of mine and they have subcategory links ending in ?cat= and ?brand=. If I'm not mistaken, this is bad for SEO and not ideal for customer user experience. I ...
0
votes
0answers
31 views

Force display currency with URL (Magento 1)

We are having issues with our international Google shopping campaigns where we our feeds are serving the prices converted to the currency for that country, ie Euros, but Google are rejecting the data ...
0
votes
1answer
16 views

Should I Index every URL to google?

I'm running a shoe store, so I have lots of attributes creating a lot of different indexable URLS's (shoe sizes, colours etc) - Should I submit all of these url's? Will it bring an SEO benefit or not
1
vote
0answers
261 views

Magento 2 Rest API get all products with certain attribute_set_id

I need to elaborate de URL that will bring all products with certain attribute_set_id through Magento 2 Rest api, and then change though the api the attribute_set_id of all those items. My problem ...