cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 adding my url to my url

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Magento 2 adding my url to my url

I moved a cloudways install of magento 2 (2.3.1) locally.

 

I used git to upload the files, and successfully ran composer install on my end.

 

I changed the URL in the core_config table to be localhost/pathtoproject 

 

When I try to access the URL, my exact url gets added to what I typed in. meaning, when I type localhost/pathtoproject, it gets changed to localhost/pathtoproject/localhost/pathtoproject/

 

How can I fix this?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2 adding my url to my url

Hi @media_bloke,

Make sure that you have added slash in the end of base url in core_config_data table.

http://localhost/pathtoproject/
Instead of
http://localhost/pathtoproject

Correct one: http://localhost/pathtoproject/

I hope it will help you!

View solution in original post

2 REPLIES 2

Re: Magento 2 adding my url to my url

Hi @media_bloke,

Make sure that you have added slash in the end of base url in core_config_data table.

http://localhost/pathtoproject/
Instead of
http://localhost/pathtoproject

Correct one: http://localhost/pathtoproject/

I hope it will help you!

Re: Magento 2 adding my url to my url

Thanks. I'm used to Javascript where you can't use http for local development, so I had left out the http:// entirely.

 

I added it, and it fixed this particular issue. On to the next one!