Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Search engine friendly URLs
Author « Topic »  

TastelessApple
Advanced Member

USA
499 Posts

Pre-sales questions only
(More Details...)

Posted - 10/29/2022 :  01:06:36  
Hello,

I'm trying to set up "search engine friendly URLs" for a store and having some trouble.

I followed the 3 steps outlined here: https://www.ecommercetemplates.com/seo/search-engine-friendly-urls-php.asp
Added "<base href="http<?php if(@$_SERVER['HTTPS']=='on') print 's'?>://www.yourstoreurl.com/" />" to the category and product pages.
Added to the includes.php file
Added to the .htacess file

The URLs seem to be doing the right thing but the css styles sheets are not being applied to the category and product pages. Somehow the link to those files seems broken.

What have a done wrong?

Thanks,
Josiah

Phil
ECT Moderator

United Kingdom
7696 Posts

Posted - 10/29/2022 :  02:32:47  
Hi,
Can you just check and make sure the line <base href="http<?php if(@$_SERVER['HTTPS']=='on') print 's'?>://www.yourstoreurl.com/" />is before the calls for the css files?

Like this would be correct:-

<!-- InstanceBeginEditable name="doctitle" -->
<title>Shopping Cart Modules and Custom Scripts: </title>
<base href="http<?php if(@$_SERVER['HTTPS']=='on') print 's'?>://www.yourstoreurl.com/" />
<meta name="Description" content=" hello everybody"/>
<!-- InstanceEndEditable -->
<meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1" />
<link href="css/ectcart.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/topmenu.css" rel="stylesheet">
<link href="css/print.css" type="text/css" rel="stylesheet" media="print" />





*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 10/29/2022 03:34:57

TastelessApple
Advanced Member

USA
499 Posts

Pre-sales questions only
(More Details...)

Posted - 10/29/2022 :  11:05:40  
Thank you very much Phil!

That was the problem.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000