Page 1 of 1

[SOLVED] Double Forward Slashs in URLs

Posted: Mon Dec 09, 2024 12:38 am
by keithdarr
My store's URLs have double forward slashes. I believe it is making Google's crawls to not work right with my store.

I was using Use SEO URLs but, that made the site not work. It kept giving me "Not Found" page. I disabled under settings, Use SEO URLs , and my store is still having the double slashes but it works.

I tried to edit .htaccess to "mask" the problem:

Code: Select all

## SEO URL Settings
RewriteEngine On
RewriteBase /store/

# Fix double slashes in URLs
RewriteCond %{REQUEST_URI} ^(.*/)//+(.*)$
RewriteRule .* %1/%2 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

That didn't work.

I also tried to edit config.php :
define('HTTP_SERVER', 'https://minnesotacannabisclones.com/store/');

I removed the trailing / but that broke the store completely.

Re: Double Forward Slashs in URLs

Posted: Mon Dec 09, 2024 4:28 am
by IP_CAM
You most likely have it definded wrong in the config File:

Code: Select all

RewriteBase /store/

Code: Select all

<base href="https://minnesotacannabisclones.com/store/"/>
link href="https://minnesotacannabisclones.com/store//index.php?route=product/.....

Re: Double Forward Slashs in URLs

Posted: Mon Dec 09, 2024 6:27 am
by keithdarr
I don't see anything like that in my /store/config.php file. I've attached what I believe to be the file in question.

Re: Double Forward Slashs in URLs

Posted: Mon Dec 09, 2024 7:49 am
by grgr
No. config file is in the root directory *same place as the folders admin, catalog, image, systems and the .htaccess file.

Re: Double Forward Slashs in URLs

Posted: Mon Dec 09, 2024 8:17 am
by keithdarr
I believe that file came from the root directory. I have my admin renamed to management.
See screenshot:
https://www.dropbox.com/scl/fi/i4a5bpa8 ... fbg4x&dl=0

Re: Double Forward Slashs in URLs

Posted: Mon Dec 09, 2024 3:52 pm
by keithdarr
all link are working


issue I need to put .htaccess file inside store folder

also needed change

RewriteBase / to

RewriteBase /store/