Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Looking Fot SEO URLs For Bootstrap Version


broadstreetbully

Recommended Posts

@@broadstreetbully the link Malcom posted is actually a header tag module. Not a seo url

Addon.

 

Seo url 5 does work with bootstrap with a few small (minor) adjustments. It probably best to post your question in the support thread.

 

Also look at ultimate seo urls here http://addons.oscommerce.com/info/2823

 

This may also require slight changes to the install for bootstrap - however both will work.

Link to comment
Share on other sites

@@broadstreetbully the link Malcom posted is actually a header tag module. Not a seo url

Addon.

 

Seo url 5 does work with bootstrap with a few small (minor) adjustments. It probably best to post your question in the support thread.

 

Also look at ultimate seo urls here http://addons.oscommerce.com/info/2823

 

This may also require slight changes to the install for bootstrap - however both will work.

yeah I tried to install seo urls 5 but there was some code that wasn't there/different than wjat was in the install instructions & i didn't wanna mess everything up

Link to comment
Share on other sites

why don't you tell us which part was different maybe we can help you out.

this was the part with the code I couldn't find in my file...

5) catalog/includes/application_top.php

Find ...

// set php_self in the local scope
  $PHP_SELF = (((strlen(ini_get('cgi.fix_pathinfo')) > 0) && ((bool)ini_get('cgi.fix_pathinfo') == false)) || !isset($HTTP_SERVER_VARS['SCRIPT_NAME'])) ? basename($HTTP_SERVER_VARS['PHP_SELF']) : basename($HTTP_SERVER_VARS['SCRIPT_NAME']);
Replace with ...

/**
  * ULTIMATE Seo Urls 5 PRO by FWR Media
  * function to return the base filename 
  */
  function usu5_base_filename() {
    // Probably won't get past SCRIPT_NAME unless this is reporting cgi location
    $base = new ArrayIterator( array( 'SCRIPT_NAME', 'PHP_SELF', 'REQUEST_URI', 'ORIG_PATH_INFO', 'HTTP_X_ORIGINAL_URL', 'HTTP_X_REWRITE_URL' ) );
    while ( $base->valid() ) {
      if ( array_key_exists(  $base->current(), $_SERVER ) && !empty(  $_SERVER[$base->current()] ) ) {
        if ( false !== strpos( $_SERVER[$base->current()], '.php' ) ) {
          preg_match( '@[a-z0-9_]+\.php@i', $_SERVER[$base->current()], $matches );
          if ( is_array( $matches ) && ( array_key_exists( 0, $matches ) )
                                    && ( substr( $matches[0], -4, 4 ) == '.php' )
                                    && ( is_readable( $matches[0] ) ) ) {
            return $matches[0];
          } 
        } 
      }
      $base->next();
    }
    // Some odd server set ups return / for SCRIPT_NAME and PHP_SELF when accessed as mysite.com (no index.php) where they usually return /index.php
    if ( ( $_SERVER['SCRIPT_NAME'] == '/' ) || ( $_SERVER['PHP_SELF'] == '/' ) ) {
      return 'index.php';
    }
    // Return the standard RC3 code 
    return ( ( ( strlen( ini_get( 'cgi.fix_pathinfo' ) ) > 0) && ( (bool)ini_get( 'cgi.fix_pathinfo' ) == false ) ) || !isset( $_SERVER['SCRIPT_NAME'] ) ) ? basename( $_SERVER['PHP_SELF'] ) : basename( $_SERVER['SCRIPT_NAME'] );
  } // End function
// set php_self in the local scope
  $PHP_SELF = usu5_base_filename();
Link to comment
Share on other sites

You should take a look at this post from @@clustersolutions

 

http://www.oscommerce.com/forums/topic/336702-ultimate-seo-urls-5-by-fwr-media/?p=1718494

 

He shows a link to his github which is very helpful for those who want to install that SEO URL addon from FWR

 

Here the link to his github

 

click here

 

the lines with a - (minus) are the ones that have been replaced/removed and the lines with a + (plus) are the ones added.

Look at all the changes that he shows in his github and follow them step by step.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...