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.

2
votes
1answer
727 views

How can I explicitly get product image URLs which use the insecure media URL as their base?

Our default site configuration uses a CDN for our insecure media URLs and no CDN for our secure media URLs. This is how things should work the majority of the time, but we have a case that needs to ...
2
votes
2answers
3k views

get other store url on same page

I have many pages which has different url key for different stores. Can I get current URL on basis of store ID. function I am using right now is getCurrentUrl(). I mean let suppose i have two ...
2
votes
1answer
6k views

Nginx working configuration for 1.7.XX

I have this store running on Apache, Magento 1.7.0.2 Then I decided to clone the application on a test server, running Nginx. I first tried mine, naive rewrite: rewrite ^(.*index\.php)\/(.*) $1?$2 ...
2
votes
2answers
94 views

How to restrict direct access `/pub` with url?

How to restrict direct access /pub with the project URL (www.domain.com/pub) in Magento 2.
2
votes
2answers
303 views

How to compose URL for AJAX in Adminhtml Magento 1.9

I'm inside the Admin area, I'm adding a check inside the products, inside my File phtml write: <?php $ajaxUrl = Mage::helper('adminhtml')->getUrl('adminhtml/MyCompany_MyModule_AjaxController/...
2
votes
1answer
52 views

My website is being forward to another URL off the search engine links

When you type my website in the address bar you make your way to our website. But if you Google or Yahoo us and click on the link they provide as a search result you get forwarded to another URL that ...
2
votes
1answer
451 views

Magento 2 Observer for 404 Page

I want to log all 404 page in magento 2. Recently we have moved from woo-commerce to magento 2 and all the product/category/pages URL are now changed. We want to log all 404 Page URL and take ...
2
votes
1answer
557 views

Why the Campaign Tracking Parameters isn't working on Product Pages?

I have a situation where I send out email campaigns which link back to products. The link code is in the format: ?utm_campaign=EnewsNov&utm_medium=email&utm_source=HouseList&utm_term=...
2
votes
1answer
73 views

How can I see the controller class (which one is it) for a page URL?

I need to find which controller is in charge of a URL http://127.0.0.1/mysite/index.php/sales/order/history/ I am working on a website, and I want to know which controller is controlling this URL....
2
votes
5answers
549 views

How to apply condition for specific page in magento?

I want to apply condition for specific page coming from url. It is neither a category page nor a custom cms page. Url is like localhost/project/index.php/news/blog.html. I want to apply condition for ...
2
votes
1answer
4k views

jQuery ajax data to controller

I am trying to make my first ajax request in magento to controller file but can not get it working. My .js file is: jQuery.ajax({ type: 'post', url: 'vendor_module/index/...
2
votes
3answers
1k views

How to get Magento root url properly?

I have custom script located inside Magento root directory used for ajax call. I am wondering what would be the safest way to get proper root url, no matter which store is user currently at. Will ...
2
votes
1answer
481 views

magento extension new routers not working (404)

I added some routes to my Magento extension and it worked on localhost and my test server, however, when a client installed the extension all the new routes lead to the site's 404 page. The client ...
2
votes
1answer
353 views

How do I ensure that all links on my Magento site use the correct base URL

I get my localhost URL of my Magento store on some parts of my site So when I open the website (now on a live server) I get the URL I want but when I check links in my footer I'll get the localhost ...
2
votes
1answer
1k views

Configurable product with different URLS for simple

If I sell a t-shirt which has 2 colours, normally I would have 1 URL for the configurable product as the 2 simple products would be set to have a visibility of hidden. However I would quite like to ...
2
votes
1answer
58 views

Magento Canonical Issue

I have an issue that I don't understand. I never did some code changes about it. Problem is, a normal magento site must go www.site.com/xyz when I type site.com/xyz in the address bar right? Well ...
2
votes
1answer
1k views

An error occurred while saving the URL rewrite Magento

I'm currently running Magento ver. 1.9.0.1 I would like to remove the .html prefix at the end of all url's on my site, but when I remove the .html from System > Configuration > Catalog > Search Engine ...
2
votes
1answer
265 views

display all products with “attribute value = 1” by single click

we use catalog price rules to give discount for all products. we have 1000 products in a site. i have to give 50 % discount for 200 products. what i did is i created an attribute "my_attribute" and ...
2
votes
1answer
1k views

Base URL is not working properly

Our url is omitting the first '/', like so: ourdomain.comindex.php when it should be ourdomain.com/index.php. I've looked everywhere in the config, and haven't found a reason why it should be doing ...
2
votes
1answer
2k views

404 Errors when trying to access other subdirectories in root with magento serving as primary (Solved)

I have magento located in a subdirectory in public_html/magento the .htaccess I used to redirect magento to the root is based on installing Magento in subdirectory Root .htaccess file contains ...
2
votes
1answer
310 views

Issue with to Force www. and SSL Mutlistore

Myself and my developer are having issues trying to force Magento to use https for all links and add the www. before our website domain. Currently, if you go to www. thepoultryhatchery .com it will ...
2
votes
1answer
226 views

UNQ_INDEX_PROCESS_INDEXER_CODE

a few time per day i get the following error (as listed in the reports) a:5:{i:0;s:124:"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'catalog_url' for 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
1answer
93 views

How to rewrite url?

Now every catalog url rewrites to catalog\category\view. But I would like to rewrite it to my own controller. Is there any simple way to do it?
2
votes
1answer
1k views

Product collection to get canonical product url By cron process

its really strange to get such kind of issue relate to get product correct url below is my collection to get product information $store = Mage::app()->getDefaultStoreView(); $...
2
votes
1answer
643 views

Adding urldecode to getURL array

I need to add urldecode to the below function but unsure how to modify it so... public function getAddFilterUrl($attribute) { $filtering = $this->getRequest()->getParam('filtering', array())...
2
votes
1answer
4k views

Layered Navigation - altering URLs

[No Extension pitches please (if I want to be spammed, I'll use the magento forum :D)] I can see this/similar has been asked before (and elsewhere). In most cases, I see people 'recommending' ...
2
votes
1answer
921 views

getImage by Label not working in Bundle item

I want to get the image by its label, inside a bundle product's each options selection item. Each selection item is a simple product. echo Mage::getModel('catalog/product')->load($product_id) ...
2
votes
1answer
217 views

Magento Link to Another Module

$fieldset->addField('orderinfo', 'link', array( 'label' => Mage::helper('web')->__('Order Info'), 'style' => "", 'href' => "*/".$url, 'value' => '...
2
votes
2answers
98 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 ...
2
votes
1answer
287 views

Generate Adminhtml Controller url with get parameter in Block

I have a controller for adminhtml area like this: namespace Namespace\Module\Controller\Adminhtml\Order; use Magento\Framework\Controller\ResultFactory; use Magento\Sales\Model\Order; class ...
2
votes
1answer
1k views

get controller name by page url

I want to get the previous page controller action name from previous page URL in Magento 1.9. I get the previous page url by this: Mage::app()->getRequest()->getServer('HTTP_REFERER'); Now I ...
2
votes
1answer
2k views

Check if product has uploaded image In Magento 2

I need to generate an email template with product image included in it, i need to check if the product image exist or not , if product image not exist i want to generate magento 2 default product ...
2
votes
1answer
265 views

Magento 1.8 after migrate live server to locahost admin URL not working

I change my Magento store Live server to Localhost, and i change core_config_data table also that is following, I clear all cache files in var/cache folder and session files var/session folder. ...
2
votes
2answers
2k views

Remove last trailing slash from url

I am using this code to get the URL of the current page I am on: <?php $currentUrl = Mage::helper('core/url')->getCurrentUrl(); ?> Problem is, at the end of the url, there is a slash. How ...
2
votes
1answer
76 views

How to rewrite a folder path

I need to create a redirect that will redirect from https://www.example.com/es to https://www.example.com/mx for all pages on my site. How would I go about that. Can I do that in Magento admin section?...
2
votes
1answer
36 views

magento modify product url and name

i worte code to modify product name and url . i am able to change name but url does not works below is mycode : public function modifyallname(Varien_Event_Observer $observer) { $...
2
votes
1answer
219 views

Why doesn't this url comparison work?

I'm trying to write a bit of php code to determine if the user is on the checkout page by getting the current url, and the checkout page url, and comparing the two. The comparison is not working ...
2
votes
1answer
27 views

Categories url in not visible when calling inside page template

Categories url in not visible when calling inside page template. But this works in catalog template. How to make this accessible in a phtml block of page template? <?php foreach ($this->...
2
votes
1answer
628 views

Auto Apply Discount on Product Page based on URL

I am wondering if anyone can offer advice on the best/easiest way to accomplish the following: I would like to be able to change the price of a product based on a URL parameter. So for example if ...
2
votes
2answers
1k views

Custom URL for magento extension

I am building a magento extension that will need a custom URL for the frontend that is set via the admin panel config setting for the extension. Along the lines of the "set admin url" setting in the ...
2
votes
4answers
2k views

How to remove Duplicate parameter in URL?

In my custom module I have passed parameter in URL like this: <?php $currentUrl = Mage::helper('core/url')->getCurrentUrl(); ?> <a href="<?php echo $currentUrl .'?alpha='. $letter ;?&...
2
votes
1answer
445 views

Custom Report extending another Report

I used the following project and created a custom report: https://github.com/technodelight/magento_custom_reports_example I changed stuff in the report. mainly there is another table joined to the ...
2
votes
1answer
55 views

Set defaults values Urls Magento

I'm using magento 1.9, I changed the values of: URL Base of JavaScript: {{unsecure_base_url}}js/ URL Base of Skin:{{unsecure_base_url}}skin/ URL Base of Media:{{unsecure_base_url}}media/ I deleted ...
2
votes
1answer
2k views

How to use URL Re-write to direct one category to another?

How do I use URL Re-write to direct one category to another? I have found a tutorial on how to do a custom URL re-write one how to direct a category to a CMS page. Is there an easy way to direct ...
2
votes
1answer
98 views

Store views having different URL structures

I have a webshop with different store views for different languages. www.clothing.com and www.english.clothing.com for example. My problem is that they have different link structures, so if I'm in a ...
2
votes
1answer
2k views

EE 1.13.1 Url Rewrites Not Working.. Why will they not index?

This is a clean install of EE 1.13.1 not an upgraded site. I am facing this issue with a group of skus in my catalog... www.MYSITE.com/catalog/product/view/id/189576/s/**url-key**/category/293/ I ...
2
votes
1answer
2k views

Get Group Product Path(URL) from Single Product ID

Given that I already have the single product id, was it possible to get it's grouped product url that has the certain single product id that I got? For example, I got a single product id of 11 ...
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 ...
2
votes
1answer
45 views

What are the rules that govern which entity “wins” in the case of conflicting URL paths

If multiple entities (e.g. a category, a product, a CMS page and a module frontname) all attempt to use the same SEF URL, what is the algorithm or process that Magento uses to decide which will be ...