Post by keithdarr » Mon Dec 09, 2024 12:38 am

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.
Last edited by keithdarr on Mon Dec 09, 2024 3:53 pm, edited 1 time in total.

New member

Posts

Joined
Wed Nov 29, 2023 12:54 pm
Location - Minneapolis, Minnesota, US

Post by IP_CAM » Mon Dec 09, 2024 4:28 am

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/.....

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by keithdarr » Mon Dec 09, 2024 6:27 am

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.

New member

Posts

Joined
Wed Nov 29, 2023 12:54 pm
Location - Minneapolis, Minnesota, US

Post by grgr » Mon Dec 09, 2024 7:49 am

No. config file is in the root directory *same place as the folders admin, catalog, image, systems and the .htaccess file.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by keithdarr » Mon Dec 09, 2024 8:17 am

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

New member

Posts

Joined
Wed Nov 29, 2023 12:54 pm
Location - Minneapolis, Minnesota, US

Post by keithdarr » Mon Dec 09, 2024 3:52 pm

all link are working


issue I need to put .htaccess file inside store folder

also needed change

RewriteBase / to

RewriteBase /store/

New member

Posts

Joined
Wed Nov 29, 2023 12:54 pm
Location - Minneapolis, Minnesota, US
Who is online

Users browsing this forum: No registered users and 5 guests