1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Have you checked if your business appears in our directory? Add your basic information for FREE!

Click Here to know more!!

If you would like links to source leads, upgrade from £12.50 a month!

Click Here to subscribe!
Dismiss Notice

Hi Guest!

Our website stays online because of the support of our advertisers. A huge part of them are from banner ads that appear on our site. While some of them seems to be intrusive for some, these ads are needed to keep our community running and continue providing free membership service for buyers.

In light to this, we request that you disable ad blocking programs or add our website to your ad blocker's whitelist. This keeps us from offering our basic membership to everyone for free and help with maintenance costs of our website.

If you have already disabled ad blocking programs or added us into the whitelist, please ignore this message, this message will disappear in a few seconds!

"Smart" or "Shortened" URLs

Discussion in 'Social Media, SEO/SEM & Online Marketing' started by PG, Aug 22, 2013.

  1. PG

    PG

    Joined:
    Feb 2, 2011
    Messages:
    3,467
  2. redspell

    redspell Banned Member

    Joined:
    Oct 12, 2009
    Messages:
    1,407
    These urls are better for your SEO as your page links will contain keywords relevant to your website pages.

    For Open Cart you would need to enable SEO Urls in the store admin area and set the url Keywords for each page as per thiese instructions: ******************************************************
    PG likes this.
  3. UKbuyer1

    UKbuyer1

    Joined:
    Oct 30, 2009
    Messages:
    8,313
    If you are using WordPress, go into settings, and change the permalink structure.
  4. PG

    PG

    Joined:
    Feb 2, 2011
    Messages:
    3,467
    Thanks mate

    When you say "these URLs" do you mean the shortened ones or the original ones?
  5. Gary

    Gary

    Joined:
    Aug 22, 2009
    Messages:
    16,364
    The shortened ones are better
    PG likes this.
  6. PG

    PG

    Joined:
    Feb 2, 2011
    Messages:
    3,467
    Thanks, Im not great with this,

    Do i need to upload this into my file manager in Cpanel?

    # 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
    # 2. In your opencart directory rename htaccess.txt to .htaccess.
    # For any support issues please visit: http://www.opencart.com
    Options +FollowSymlinks
    # Prevent Directoy listing
    Options -Indexes
    # Prevent Direct Access to files
    <FilesMatch "\.(tpl|ini|log)">
    Order deny,allow
    Deny from all
    </FilesMatch>
    # SEO URL Settings
    RewriteEngine On
    # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
    RewriteBase /
    RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
    RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
    RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
    ### Additional Settings that may need to be enabled for some servers
    ### Uncomment the commands by removing the # sign in front of it.
    ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.
    # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
    # php_flag register_globals off
    # 2. If your cart has magic quotes enabled, This may work to disable it:
    # php_flag magic_quotes_gpc Off
    # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
    # php_value upload_max_filesize 999M
    # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value post_max_size 999M
    # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value max_execution_time 200
    # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value max_input_time 200
    # 7. disable open_basedir limitations
    # php_admin_value open_basedir none
  7. redspell

    redspell Banned Member

    Joined:
    Oct 12, 2009
    Messages:
    1,407
    You can copy paste the above into your existing .htaccess file that is already in your public_html directory, or there should be a sample file containing the above already in your fileset and all you need to do is rename it from .htaccess.txt to .htaccess
  8. PG

    PG

    Joined:
    Feb 2, 2011
    Messages:
    3,467
    Thanks

    I already have something called ".htaccess"

    Can i delete that and replace it with the one called htaccess.txt?
  9. redspell

    redspell Banned Member

    Joined:
    Oct 12, 2009
    Messages:
    1,407
    If you have one it will be empty.

    I would just copy and paste the content of the htaccess.txt file into the existing/empty .htaccess file and click save.
  10. PG

    PG

    Joined:
    Feb 2, 2011
    Messages:
    3,467
    Cheers, thats all done

    Should the URLs now be shorter?
  11. redspell

    redspell Banned Member

    Joined:
    Oct 12, 2009
    Messages:
    1,407
    If you follow the link I gave it will show you how to set the SEO urls for each page in your Open Cart admin.
    PG likes this.
  12. PG

    PG

    Joined:
    Feb 2, 2011
    Messages:
    3,467
    Cheers

    All sorted
Back to top

Share This Page