Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ULTIMATE SEO URLs avoid google penalties


FWR Media

Recommended Posts

By constant yes this was the error i got when i opened a product from the index page and when i clicked a category. be it any category

 

Pooya we are not understanding each other .. and you post then dissappear.

 

Sorry but I can't support your issue.

 

If you want to give me ftp access then I'll try to help but I can't help like this.

Edited by Babygurgles
Link to comment
Share on other sites

Errrrr .... Told you to come on msn :( or any messenger, this way we could be in touch fully.

 

Let me know of what to do.

 

 

One last go ..

 

What we know is that the following link produces the error ..

 

http://www.vmart.pk/main/cdr-cdrw-c-2.html

 

The following is what I asked for ..

 

Here is a test I would like to see the results when you click on that very same link http://www.vmart.pk/main/cdr-cdrw-c-2.html
Link to comment
Share on other sites

Hey, while being bored i did the following.

Firstly removed the REMOVE ME LINES

 

Then changed

$validate_array = explode('-ex-', $querytype);

 

To $validate_array = explode('--ex--', $querytype);

 

Also removed the Enter special character conversions

And it resulted to the following below when clicked on a category.

 

Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359

 

 

Error!

 

Unable to determine the page link!

-----------------------------------------------

 

THis is with the REMOVE ME LINES.

 

$validate_array[0] = FILENAME_PRODUCT_INFO-EX-PRODUCTS_ID=620

$validate_array[1] =

$querytype = filename_product_info-ex-products_id=620

$_SERVER['REQUEST_URI'] = /main/logitech-mini-mouse-optical-p-620.html

---------

$validate_array[0] = FILENAME_DEFAULT-EX-CPATH=98

$validate_array[1] =

$querytype = filename_default-ex-cPath=98

$_SERVER['REQUEST_URI'] = /main/floppy-disks-c-98.html

Link to comment
Share on other sites

Hey, while being bored i did the following.

Firstly removed the REMOVE ME LINES

 

Then changed

$validate_array = explode('-ex-', $querytype);

 

To $validate_array = explode('--ex--', $querytype);

 

Also removed the Enter special character conversions

And it resulted to the following below when clicked on a category.

 

Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359

Error!

 

Unable to determine the page link!

-----------------------------------------------

 

THis is with the REMOVE ME LINES.

 

$validate_array[0] = FILENAME_PRODUCT_INFO-EX-PRODUCTS_ID=620

$validate_array[1] =

$querytype = filename_product_info-ex-products_id=620

$_SERVER['REQUEST_URI'] = /main/logitech-mini-mouse-optical-p-620.html

---------

$validate_array[0] = FILENAME_DEFAULT-EX-CPATH=98

$validate_array[1] =

$querytype = filename_default-ex-cPath=98

$_SERVER['REQUEST_URI'] = /main/floppy-disks-c-98.html

 

 

Well it would do

 

Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359

 

you broke the explode.

 

Which bit of my above post didn't you understand???

Link to comment
Share on other sites

Hey, while being bored i did the following.

Firstly removed the REMOVE ME LINES

 

Then changed

$validate_array = explode('-ex-', $querytype);

 

To $validate_array = explode('--ex--', $querytype);

 

Also removed the Enter special character conversions

And it resulted to the following below when clicked on a category.

 

Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359

Error!

 

Unable to determine the page link!

-----------------------------------------------

 

THis is with the REMOVE ME LINES.

 

$validate_array[0] = FILENAME_PRODUCT_INFO-EX-PRODUCTS_ID=620

$validate_array[1] =

$querytype = filename_product_info-ex-products_id=620

$_SERVER['REQUEST_URI'] = /main/logitech-mini-mouse-optical-p-620.html

---------

$validate_array[0] = FILENAME_DEFAULT-EX-CPATH=98

$validate_array[1] =

$querytype = filename_default-ex-cPath=98

$_SERVER['REQUEST_URI'] = /main/floppy-disks-c-98.html

 

 

Well it would do

 

Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359

 

you broke the explode.

 

Which bit of my above post didn't you understand???

 

The following is what I asked for ..

 

 

Here is a test I would like to see the results when you click on that very same link http://www.vmart.pk/main/cdr-cdrw-c-2.html
Link to comment
Share on other sites

Wait a minute!!! this is a bog standard feature of ULTIMATE SEO URLs.

 

Go into admin>configuration>SEO URLs

 

Enable automatic redirects? > TRUE

 

It was set TRUE, didn't work.

 

Have you tried this on your site?

When you type http://yoursite.com/index.php?cPath=10

Will it automatically redirect to? http://yoursite.com/yourcat-c-10.html

 

Btw, I have tried 2.1d and 2.2e.

Link to comment
Share on other sites

It was set TRUE, didn't work.

 

Have you tried this on your site?

When you type http://yoursite.com/index.php?cPath=10

Will it automatically redirect to? http://yoursite.com/yourcat-c-10.html

 

Btw, I have tried 2.1d and 2.2e.

 

My test site has RC2a with 2.1d and my mod. It redirects fine.

Link to comment
Share on other sites

I just wanted to say, I've been spending way too much time trying to figure out why google sitemaps were getting redirect errors.

 

I installed Post #50ish and it's working great. I have one question though. What is the SQL file for? the instructions don't mention to run it or not. If anyone would like to see my site as an example it is http://www.safetygears.net

 

hopefully the next time google sitemaps comes around to crawl, all the errors will go away.

Link to comment
Share on other sites

Well it would do

 

Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359

 

you broke the explode.

 

Which bit of my above post didn't you understand???

 

 

Sorry guess i was being dumb :(

 

Anywho the following are the results

 

$validate_array[0] = FILENAME_DEFAULT-EX-CPATH=2

$validate_array[1] =

$querytype = filename_default-ex-cPath=2

$_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html

 

**This is with $validate_array = explode('--ex--', $querytype);

-------------------------------

 

$validate_array[0] = FILENAME_DEFAULT

$validate_array[1] = cPath=2

$querytype = filename_default-ex-cPath=2

$_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html

 

**This is with $validate_array = explode('-ex-', $querytype);

 

-------------

Do tell which explode to use :)

Link to comment
Share on other sites

Sorry guess i was being dumb :(

 

Anywho the following are the results

 

$validate_array[0] = FILENAME_DEFAULT-EX-CPATH=2

$validate_array[1] =

$querytype = filename_default-ex-cPath=2

$_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html

 

**This is with $validate_array = explode('--ex--', $querytype);

-------------------------------

 

$validate_array[0] = FILENAME_DEFAULT

$validate_array[1] = cPath=2

$querytype = filename_default-ex-cPath=2

$_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html

 

**This is with $validate_array = explode('-ex-', $querytype);

 

-------------

Do tell which explode to use :)

 

Pooya your version uses -ex- so use -ex-

 

This ..

 

$validate_array[0] = FILENAME_DEFAULT
$validate_array[1] = cPath=2
$querytype = filename_default-ex-cPath=2
$_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html

 

Is a perfect response

 

The next stage in the code is ..

 

$linkreturned = tep_href_link(constant(strtoupper($validate_array[0])), $validate_array[1]);

 

Well $validate_array[0] is fine as we know it's FILENAME_DEFAULT

 

$validate_array[1] is also fine as we know it is cPath=2

 

Sooo .. it should build a perfect SEO link via tep_href_link

 

The problem seems to be then that your server doesn't like

 

constant(strtoupper($validate_array[0]));

 

Try this where you tried the last code and see if it kicks an error ..

 

// REMOVE ME 2
$lower = 'filename_default';
die (constant(strtoupper($lower)));
// REMOVE ME 2

Link to comment
Share on other sites

THe results...

 

Yo TOld me to look for

$linkreturned = tep_href_link(constant(strtoupper($validate_array[0])), $validate_array[1]);

 

But i have

$linkreturned = tep_href_link(constant('' . strtoupper($validate_array[0]) . ''), $validate_array[1]);

 

Anyways, i added the remove me 2 code to the same place.

And i got this as error

 

ECHO : index.php

 

**This is on any product i click or category.

And im using -ex- explode.

Link to comment
Share on other sites

Replace your $linkreturned line with: -

 

 

$linkreturned = tep_href_link(constant(strtoupper($validate_array[0])), $validate_array[1]);

Link to comment
Share on other sites

Shows

 

index.php

 

LOL take out the all the // REMOVE ME after doing the above. you never know .. it may actually work :D

Link to comment
Share on other sites

This has now been released as a contribution, this thread is therefore closed.

 

Support will continue here . .

 

http://www.oscommerce.com/forums/index.php?showtopic=292791

Link to comment
Share on other sites

Looking for some direction. I installed SEO v2.0b and all seemed well until I tried selecting any product or category.....I am directed to blank page after blank page with no error message or anything. I am a newbie so forgive me if this question has been answered in a different forum. Trust me I have been looking. The installation went smoothly and the only hiccups were 1.) while following the additional installation instructions I did a second sql update and the fields where already in the table and 2.) the htaccess edit that i needed add requested i add my catalog folder location and i used : public_html

 

here is the code

 

Options +FollowSymLinks
RewriteEngine On 
RewriteBase /public_html/

 

I am turning off the SEO for know but I would really like to have it working, so any help would be appreciated.

 

The site is:

Gany Direct

 

Thanks

 

Jada

Edited by Jada

Jada

 

The codes of the many, outweigh the codes of the few. Live long and Prosper.

Link to comment
Share on other sites

Looking for some direction. I installed SEO v2.0b and all seemed well until I tried selecting any product or category.....I am directed to blank page after blank page with no error message or anything. I am a newbie so forgive me if this question has been answered in a different forum. Trust me I have been looking. The installation went smoothly and the only hiccups were 1.) while following the additional installation instructions I did a second sql update and the fields where already in the table and 2.) the htaccess edit that i needed add requested i add my catalog folder location and i used : public_html

 

here is the code

 

Options +FollowSymLinks
RewriteEngine On 
RewriteBase /public_html/

 

I am turning off the SEO for know but I would really like to have it working, so any help would be appreciated.

 

The site is:

Gany Direct

 

Thanks

 

Jada

 

Firstly you should be using the first posted 2.1d put up by Yesudo. Secondly.

 

If store is in root (www.mysite.com) use ..

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

 

If store is in a directory (www.mysite.com/catalog/) use ...

 

Options +FollowSymLinks
RewriteEngine On
RewriteBase /catalog/

 

Bare in mind that your folder may be called something other than catalog .. /shop/ for example.

 

And btw this topic is regarding Independent validation for SEO URLs NOT ULTIMATE SEO URLs

 

This topic is also CLOSED

Edited by Babygurgles
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...