Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Safe Search Engine URL's


DejaVu

Recommended Posts

Posted

I've contacted my host and they will not put Register Globals on for security reasons.

 

But my whole site is now complaining about the register globals after I added this Safe Search Eninge URL's.

 

Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

 

I've looked at the .htaccess file and cant work out what needs to be changed exactly. Can anyone help?

Posted

if you made a backup of your previous .htaccess check which code was added there...and then add it to your new .htaccess

Posted

I have completely reverted back to my original backup now and before I go installing this I just want to make sure of something.

 

The only edit to the .htaccess file it asked me to do was add this to it -

Options +FollowSymLinks
RewriteEngine On 
RewriteBase /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

 

My site runs direct from the root directory (no catalog/ folder). The .htaccess file was everything commented out and does nothing. Is this code above a requirement for the SEO URL's? Becuase I'm sure it's this that screwed it up last time.

 

I am going for it again now though. Make or break! ;)

 

My site has the register_globals off at the moment (as it always will have) and works fine as is.

 

Does Ultimate SEO URLs require the register_globals to be on?

Posted

I have added the contribution without the .htacess information above. I'm not recieving the dreaded 500 Internal Server error unless I add the above code.

I am however getting 404 errors when trying to view products. They are renamed to server friendly urls though.

 

Can view it here - http://www.ticklesticks.co.uk

Posted

you need to check any register globals on mods you have done against the modifications required by ultimate seo urls....then make sure all the register globals modifications is retained together with the ultimate seo url changes.

Posted

I'm not exactly sure what you mean by that.

 

I dont think I've added any other register global mods as far as I know.

 

So far, the only mods installed are -

 

Easy Populate, Lightbox 2 & Easy CSS Menu

 

And of course Ulimate SEO URL's now

 

I'm going to try a test site out with this. I'm going to reupload another copy of OSCommerce and just add the SEO to see if my server will let me use this.

Posted

Then i guess you are using RC1, then do not make an install where you just overwrite old files with contribution files, merge the existing RC1 files with the contributions file changes.

Posted

I would prefer not to use RC1, if there is somewhere on the site I could get it from?

 

It's not in the download section.

Posted

RC1 is in the downloads section of this web site.

 

if you used an older version of oscommerce, there are usually 3 options why it worked on a hosting inviroment with with register globals set to off.

 

1. it had the register globals patches added

 

or

 

2. there was an overriding code added to your .htaccess file which enabled register globals just for your shop/domain.

 

or

 

3. a local php.ini with register globals set to enabled

Posted

My .htaccess has nothing enabled.

 

I had to delete one of them in order to get some of the images to work.

I reckon RC1 comes with the patch added. But when trying to use a .htaccess it all goes to pot.

 

Overiding code in .htacess throws a 500 Internal Server Error. So I think what it boils down to is that your OK to use RC1 with register_globals off, but mods that need them like Safe Search Engine URL's cant be used unless there is a work around for them...?

 

 

--EDIT--

I've uploaded a fresh install of RC1 here - http://www.ticklesticks.co.uk/test_server/ The only thing aded is Ultimate SEO URL's (without the .htacess edit above) and it still wont work. When adding the above. It breaks again with a 500 error. :(

 

I've contacted my webhost about putting register_globals on, but they wont do it for security reasons or something. :(

Archived

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

×
×
  • Create New...