Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
8
votes
4answers
3k views

Always show full URL including categories for product

For our Magento webshop (1.7.0.2), we're trying to optimize the URL structure. We've already managed to improve some things, but in one things we didn't succeed. We want to use a full URL (including ...
6
votes
2answers
3k views

Change Magento URL category Rules

I'm trying to modify URL-Category Rules, from Category Hierarchy-Oriented rules to Seo-Oriented rules. So i need to change URLs in this way. From: - Root-Category (URL: /rootcategory.html ) -- ...
6
votes
2answers
2k views

Best way to check if page is home page

What is the most reliable way to check if current page is the home page? I need to check that in a block class and in a helper class. Searching on forums, I've found two popular ways to do this: ...
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 ...
6
votes
2answers
7k views

Setting AJAX URL for custom module

I have a JavaScript file in /js/mds/mds_collivery.js. In it I have an AJAX call that should go to magento_install_url/collivery/ajax/cptypes. It will only be used in /checkout/onepage/. However, if I ...
5
votes
3answers
2k views

Case Sensitive URL Rewrites

I wish to create a series of rewrites so that the following redirect occurs: Request: Category/ProductName.html Target: category/productname.html At present, visiting Category/ProductName.html ...
5
votes
1answer
4k views

Magento : How to hide the default Store View code from the url

The site has 2 languages: English and French, represented by 2 store views. French is the default one. For our SEO efforts we need to have the following urls: French - http://www.domain.com/category/...
3
votes
0answers
1k views

Get frontend category URL in admin area with correct base URL

I try to load categories in the admin area with store specific values. $this->categoryCollectionFactory->create() ->setStoreId($storeId) ->addAttributeToSelect(['name', 'url_key'])...
2
votes
2answers
4k views

Multi-website language switcher not showing

This is my first time creating a multi-lingual webshop, so first I created 2 storeviews, where the switcher was working fine. Then I found out that I needed to create multi-websites instead. I did it ...
2
votes
6answers
3k views

How to forward all the 404 Magento pages to the front page?

I have a simple question...I had an old store and people bookmarked specific product pages in their browsers as well as Google search points to some specific pages. I have now installed a new version ...
2
votes
2answers
2k views

Multistore - Prevent product from having multiple urls

I have a magento multi-store configuration. One website, with multiple stores, on different subdomains. I'm having an issue with a single product assigned to one store view having multiple urls. My ...
1
vote
2answers
1k views

Brand link is going back to homepage

Every product has a link to browse other products by the same brand. When the link is clicked it goes back to the homepage instead of the brand page. How can I configure it to work? Browse other ...
1
vote
2answers
751 views

Same url for two different categories

please refer this url http://www.utsavfashion.in/newarrivals/saree Under the NEW ARRAIVALS category i have the subcategory named as SAREE, then All new catalogs is the subcategory of SAREE. Both ...
1
vote
2answers
40 views

Parameters through url

I'm trying go get parameters from my submitted form (my form is devided in two parts). When I submit my first form, my page go to the second part (on the right view). But I'm stuck here. I have that : ...
1
vote
2answers
3k views

How to set product images from external url

I have created products in magento site. Now I want to load product images from external url.. how I will do this?
1
vote
1answer
2k views

How to change product URL and redirect?

Here's the situation I need to redirect one of my product to homepage make it as homepage at the same time the URL must be changed to home, so instead of www.example.com/sample-product it should be ...
1
vote
2answers
4k views

Magento remove “default” store code from urls

I have installed Magento ce 1.9.2.4 for my website. Now I have setup the stores in such a way that my every url has store code of the current store, visitor is in, appended to it. For business(...
1
vote
1answer
492 views

Url in magento product page not showing up right

As mentioned in the title i am dealing with the following problem. When i click at a category in my menu the url i see is something like that: myshop.com/catalog/category/view/s/category-name/id/14 ...
1
vote
4answers
4k views

How to get product url with category key on home page

I want to get product url with category key in it on home page. for example: www.example.com/category/product.html Thanks
1
vote
1answer
290 views

magento 2.2.5 turn back to home when i change store view

i've an issue on magento 2.2.5. I've created two store view it/en, when I'm on product page and change store view from it to en and vice versa, I'm redirected to the home page. Someone can help me? ...
1
vote
2answers
999 views

Too many URL Rewrites

As you can see in the attached image, foreach product in my store I have too many rewrite rules. I would like to have only one rule with the following syntax: mydomain.com/product-category/product-...
0
votes
1answer
756 views

Magento 2: Custom Module URL Key Magento Function

I'm using Magento 2 CE Version 2.1.0. I'm creating a custom module. For saving data I'm using custom INSERT query. In that INSERT query, i also need to save URL Key/Identifier which is going to ...
0
votes
1answer
1k views

Static product URL prefix

I would like to add a static path to product URLs. Something like 'product/regular-product-path'. I would like this to be a rule, not something I have to add manually in Catalog >> URL Rewrite Manager....
0
votes
1answer
841 views

category/ url key not accept language other than english?

i want to input some chinese url key for seo optimization in my region, but when i input some chinese character, the category and product was saved nothing. Any solution?
0
votes
1answer
1k views

Disable product url without category path (SEO)

When I set the option Use Categories Path for Product URLs to Yes, the product-URL changes to the one with categories path. Thats what I need. But in that case the product is also availible trough ...
0
votes
2answers
759 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
2answers
1k views

Magento rewrite tags url

I had created tag called test in Magento but its default url is like tag/product/list/tagId/1/ but i need the url to be like the tag/test. I tried magento-tag-url-rewrite-and-generate and magento-...
0
votes
1answer
76 views

How do I set Magento up such that the storecode comes before the path to store in the URL? (Pre-path store code)

So; I'm currently setting up a Magento installation off the back of a WordPress multisite setup. The WP multisite has 2 sites/domains, and each site has 3 regional variants powered by mqTranslate; ala:...
0
votes
3answers
2k views

how can I implement the back button in magento?

I want to implement a "back button" which will takes the user to the previous page on clicking. Then the page before that, then the page before that and so on. So far I have done something like this.. ...
0
votes
1answer
119 views

How to show https on all pages of site?

I want to show https in my url of all pages of site. Please help me out to make this thing possible. Right now https is only appearing in my home page and checkout page. My site url is https://www....
0
votes
2answers
61 views

can't get admin url - Magento 2

I use the below code to get admin url of given frontName/controllerName/Action protected $storeManagerInterface; public function __construct(\Magento\Store\Model\StoreManagerInterface $...
0
votes
3answers
5k views

change subnavigation category url

can you change subnavigation subcategory urls to SEO friendly? if so how? ie: existing = store.com/apparel.html?cat=4 desired = store.com/apparel/shirts.html or anything close to that.
0
votes
0answers
213 views

Getting infinite loop on loading category pages

After I put my magento project on a linux server. I cleared all of cache. I removed all of the files from var/cache. I used this command php -indexer --reindexall everything was reindexed ...
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 ...