Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Desperate Help Needed, With SEO URLs


comicsigotem

Recommended Posts

Posted

Okay, I tried installing the SEO URL configuration and now my whole website is actin up. I'm thinkin it has to do with the .htaccess file. When I do the modification that the installation says to do, the site does a 500 error. When I put in my original .htaccess file, I can get to the index page, but none of the links work and it says the page can not be displayed.

 

Here's what my original .htaccess file has:

RewriteEngine On

RewriteRule ^index.html$ /shop/index.php [R]

 

And it says to change it with:

Options +FollowSymLinks

RewriteEngine On

RewriteBase /directory/

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

 

and to change the directory with my directory. How do I edit it so that these two functions work together?

 

Another thing I noticed, in my admin, when I click to edit a product, I can't see the things to edit, it's all blank after the SEO URL section so I think something else might be up.

 

PLEASE help me, this is really urgent, especially since I sell comics and tomorrow is new comic book day. By the way, my site is http://www.comicsigotem.com if you want to see what's going on.

Posted

Re: .htaccess

 

I think you only need the first

 

RewriteEngine On

 

In the case of your shop use ...

 

RewriteBase /shop/

 

Re: No admin options this suggests to me that you may be using MySQL5 in which case you need to make some changes: -

 

1) Open file includes/classes/seo.class.php

2) Find

 

function SEO_URL_INSTALLER(){

 

There are a load of lines that start like ..

 

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` VALUES ('',

 

change them all to start ...

 

'QUERY' => "INSERT INTO `".TABLE_CONFIGURATION."` VALUES (NULL,

 

Further down find ..

 

function install_settings(){

 

A few lines down you'll see ..

 

		  `cache_date` datetime NOT NULL default '0000-00-00 00:00:00',
	  `cache_expires` datetime NOT NULL default '0000-00-00 00:00:00',

 

Change those two lines to

		  `cache_date` datetime NOT NULL,
	  `cache_expires` datetime NOT NULL,

 

That should do it.

Posted

Okay, the good news is, this isn't as drastic of a situation as I originally thought. I found out I can just turn them off in the admin and my store works fine, phew.

 

But, I still want SEO URLs, so if anyone has any idea what's wrong, much appreciated.

Posted

Your hosting company doesn't even say which type of servers they provide - if they are Windows you can forget Ultimate SEO URL's because .htaccess is an Apache only feature and will just return an error on Windows servers.

 

Even Apache has to have Mod Rewrite enabled.

 

Vger

Posted

But is Mod Rewrite enabled? If not then you can't use this mod. Look under Tools --> Server Info to see if Mod Rewrite is enabled.

 

Vger

Posted

Admin --> Tools --> Server Info

 

This displays the PHP Info page.

 

On mine, Mod Rewrite is under Apache (left side) then subheading Loaded Modules.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Close to the top of the Server Info screen, mine says:

 

HTTP Server: Apache

PHP Version: 4.3.11 (Zend: 1.3.0)

 

What does your's say next to HTTP Server?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

OK.

 

Pull up your Sever Info page again.

 

TYpe ^F (hold the <Ctrl> key down then hit the F key)

 

A box pops up for you to type something in to search for on the page.

 

In the "Find" box type: rewrite

 

Be sure the boxes next to Match whole word only and Match case are NOT checked, then click Next.

 

Is rewrite found anywhere on the page?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Then it appears you may not be able to use the mod (as Miss Anthony has pointed out).

 

I know very little about this, so maybe someone with more expertise can post again.

 

I was just helping you find the information requested by others...

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Well... Err.... Ummmm...

 

If there's anything I know less about than mod_rewrite, it's MYSQL...

:lol:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...