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
24 views

Magento 1.x Custom Module - get wrong Frontend Url

I have Mage 1.9 with my custom module installed. I have checked that the function Mage::getUrl('mymodule/api/users/1'); return wrong url with admin path. We also use a custom path for the admin ...
0
votes
1answer
14 views

Headless Magento 2: Need custom URL instead of domain/products/:SKU

Fairly new to to magento. I am going for a headless approach, where I have created product listing pages with URLs as: www.domain.com/products/:productSKU I want to change this to something like: ...
1
vote
2answers
3k views

Magento2 : Get Product Url for Store

I'm writing a custom indexer and I need to retrieve the product URL for different stores. $product->setStoreId(2)->getProductUrl(); still returns the URL with the admin store (backoffice) in ...
1
vote
1answer
1k views

Fix Category Url Filter in Magento 2 Layered Navigation

By default in Magento 2, the category links look like this They lead to ?catId=xxx, instead of the better SEO friendly links, like the product name. I found a solution for this issue, but it's for ...
0
votes
1answer
1k views

Admin Login redirecting after login

I have cloned my 1.9.1 install to a subdomain successfully. However an odd behavior is occurring. When I attempt to login to the admin, the page reloads, the login fields are blank, and I noticed ...
1
vote
2answers
72 views

How to pass store code to custom URL in magento 2

I would like to add store code to a custom URL in Magento 2.3.0 Actually, I want to pass store code to a custom URL in my custom module based on relevant store order. Let's take an example: public ...
2
votes
1answer
892 views

URL Rewrite Rules in Admin

I apologize if this is a duplicate request someplace else, but I could not find an easy way to locate it if it exists, so here we go. I want a simple breakdown how to use the fields in the URL ...
2
votes
0answers
51 views

Magento 2 - Frontend Controller conditional based 404 page

I have custom frontend controller, I added the URL Rewrite for this controller I want to figure out the way, How I send requesting URL to 404 page based on some condition within the controller. I ...
1
vote
2answers
2k views

uenc in the url

We are migrating a project, after migrating code to new server, at the cart page the product removing is not working (http://35.185.190.192/checkout/cart/delete/id/61137/uenc/...
0
votes
0answers
24 views

Magento 2.2 Ajax not working on second time in category page

My site was working fine, suddenly the ajax on category pages is not working on second time. On first time it works fine, whether it is pagination or layered navigation but on second time it doesn't ...
0
votes
1answer
3k views

Fetch Customer Dashboard Order URL

How can I fetch Order URL on frontend just like its done in Customer Account dashboard > My Orders ? The code written in history.phtml file for Order URL is as under: <span class="nobr"><...
0
votes
1answer
1k views

Check page url is category page or cms

I have an page url of magento site. my question is : how can i check the page url is category page or cms page or other page? for example: page URL is : http://example.com/craft.html(category page)...
6
votes
2answers
2k views

Get page URL from current page, different store-view

I'm using different store-views to create different language versions of a shop. Now I'm trying to add links to the other pages. However, I can not find a way to get the actual URL from the other ...
0
votes
1answer
52 views

Magento 2.2: Base URL removed when attempting to access admin login

Was having problems yesterday with my server, which the community seemed to think were irreparable, so I decided to rebuild it. Set up a LAMP stack with Redis and re-installed magento. Used my ...
0
votes
0answers
16 views

Magento 1: How can I add or copy custom URL rewrites in bulk?

Is there a way I can bulk add approx 2,000 custom URL rewrites in Magento 1.9? Can I maybe insert directly into the core_url_rewrites table as an SQL command? I ask because we have just created a ...
0
votes
1answer
276 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 ...
2
votes
1answer
163 views

Braintree and Kount (GENE version 2.2.3) installation on Magento ver. 1.14.0.1

I'm trying to configure ENS via a Braintree, Kount, Magento workflow, and are experiencing errors that i'm unable to diagnose. Here's what I'm doing: Order # 100096149 | Jan 8, 2018 3:51:07 PM (...
1
vote
1answer
21 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
17 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 ...
3
votes
1answer
846 views

Magento 2 - Set global variable

I want to know if it's possible to add a global variable all through the site (so that if I need to change it, I would only need to do it once). It's for an URL.
2
votes
0answers
27 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
26 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 ...
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
2k 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 ...
1
vote
3answers
287 views

Multiple url name and field addcolumn action

I have this code: $grid->addColumn('action',array( 'header' => $this->__('Action'), 'type' => 'action', 'action' => array( ...
1
vote
1answer
34 views

How to rewrite url between page and category?

I'm a magento beginner. I have problem. please help me My problem is I have create one category(about us) and one page(about us). when i click in menu category(about us), it will show the page(about ...
0
votes
2answers
135 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
0
votes
0answers
54 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/...
0
votes
1answer
26 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
10 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
2answers
201 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
1answer
67 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/...
0
votes
1answer
605 views

How can i rewrite my category url for redirect new site

How can i configure category url rewrite management. When user click category it leads to another site.
1
vote
2answers
114 views

Magento 2 URL structure

I Need a module or solution that can change Magneto2.1.9 URL generator.Actually want my URL to be like This https://www.example.com/folder/product-name-SKU the folder is my stores. Right now it ...
1
vote
1answer
60 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'...
2
votes
1answer
21 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 ...
1
vote
1answer
58 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 ...
7
votes
2answers
1k views

Magento2: Remove Store Code URL only for default store

I am developing a Magento 2 store with two store views, one for each language(English and Italian). I turned on the "Add Store Code to Urls" option from backend, so my URLs looks like: http://mystore....
1
vote
1answer
23 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
1answer
34 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(...
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
1answer
355 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 ...
4
votes
1answer
648 views

Magento 2 - Wordpress Integration url issue

I am using a magento 2.1.8 site. I have installed wordpress in a subdirectory of my root directory. I have integrated the wordpress and magento site by using fishpig wordpress extension. All other ...
1
vote
1answer
154 views

How to show https and www in URL?

I have a site i.e. nutriment.com, I want to show https and www both in the URL but the problem is that https is appearing but www not appearing the URL and https show only on the Home Page, not in the ...
1
vote
3answers
2k views

Removing Magento Store URLs Param ?__store=

Magento's store URL wuery param is really annoying me and I'm not sure of the point of it when there is a store cookie for holding this info, also it only appears when you first visit a site or switch ...
0
votes
1answer
888 views

How to remove trailing slash from Magento 2 url

I have installed ssl in my Magento 2 store and configured base url to the https version. But when accessing http version, Magento redirecting url with appending trailing slash. For example: My ...
1
vote
1answer
603 views

Use secure url for static files field into database Magento 2?

I'm using magento 2, and I'm trying to find the field of "use secure url for static files" (or similar label). I can find web/unsecure/base_url into mgxo_core_config_data , but not that one, I need to ...
0
votes
0answers
70 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/...
2
votes
2answers
66 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 ...