0

I am running Magento 2.2.7 and my current URL for my store is https://shop.xyz.ca/Magneto and I would like to change it to be https://shop.xyz.ca/

I am set up on Windows Server and using Xampp 3.2.2

I don't recall where the URLs are set (not talking about Magento Admin and base URLs etc) but I assume it is within the Apache portion of Xampp. but I can't figure out where. Any help would be most appreciated as the Magento learning curve is... wow

Cheers

Anas Mansuri
  • 2,627
  • 1
  • 11
  • 28
Mur
  • 1
  • 1
  • 2

4 Answers4

0

Go to your db (via phpmyadmin)

core_config_data

open this table and search path is (keyword = url)

then it will shown the urls in value

now you can edit as per your wish (like -https://shop.xyz.ca/)

and cmd in your magento root directory

php bin/magento c:c

now check the site

prabhakaran7
  • 1,077
  • 1
  • 16
  • 58
  • I can change the urls in the db, that's not an issue but when I do change to https://shop.xyz.ca/, I then get an error 403 for the store and admin page. Is there something in apache I need to set? I tried to set the DocumentRoot to my Magento folder but that didn't help. I'm sure that its some step that I am missing.. – Mur Jun 20 '19 at 16:35
  • you need change the url correctly www.shop.xyz.ca/ – prabhakaran7 Jun 21 '19 at 03:53
0

When you going to fresh installation of magento, please copy paste your folders and files like app,bin,dev,generated,lib,phpserver,setup,var,vendor etc.... in directly to your var/www/html or htdocs folder. You do not have to paste in magento folder. Please avoid any folder and directly paste folders files into your website root folder.

Chirag Parmar
  • 739
  • 8
  • 19
0

Goto your database and looking table : core_config_data open table and search column 'path' value like web/unsecure/base_url and web/secure/base_url replace value what you want to change.

put command in root directory via terminal php bin/magento cache:clean than refresh your homepage.

Anas Mansuri
  • 2,627
  • 1
  • 11
  • 28
  • I can change the urls in the db, that's not an issue but when I do change to shop.xyz.ca, I then get an error 403 for the store and admin page. Is there something in apache I need to set? I tried to set the DocumentRoot to my Magento folder but that didn't help. I'm sure that its some step that I am missing. – Mur Jun 20 '19 at 17:53
  • If you receive 403 than check your folders permission. – Anas Mansuri Jun 20 '19 at 18:07
0

This answer assumes that you are running apache 2.4 on ubuntu.

403 error when visiting website in browser

Booba
  • 33
  • 6