Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: pretty links?  (Read 11931 times)

Offline Palamedes

  • Newbie
  • *
  • Posts: 36
  • Karma: +5/-0
    • View Profile
    • RandomStringOfWords
pretty links?
« on: March 06, 2012, 10:06:36 PM »
Is there currently a way (or a planned way in the future) to do customizable perma/pretty links using mod rewrite?

So I can have mystore.com/index.php?rt=index/home look like mystore.om/home?

Maybe something similar to what wordpress allows you to do?  (I hate comparing you to wordpress.. )

WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A number of tags are available;  codex.wordpress.org/Using_Permalinks
~Pal

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: pretty links?
« Reply #1 on: March 06, 2012, 10:50:14 PM »
I think you refer to SEO URLs

It is already available in AbanteCart.
In the product, category and manufacturer (brand) edit section there is a SEO Keyword that needs to be set.

You need to have .htaccess enabled as well for this to work.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline Palamedes

  • Newbie
  • *
  • Posts: 36
  • Karma: +5/-0
    • View Profile
    • RandomStringOfWords
Re: pretty links?
« Reply #2 on: March 06, 2012, 11:12:55 PM »
Is there an example .htaccess file somewhere?
~Pal

Offline Palamedes

  • Newbie
  • *
  • Posts: 36
  • Karma: +5/-0
    • View Profile
    • RandomStringOfWords
Re: pretty links?
« Reply #3 on: March 06, 2012, 11:21:28 PM »
The config area says it comes with a htaccess.txt file but I'm not seeing that anywhere.
~Pal

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: pretty links?
« Reply #4 on: March 07, 2012, 07:30:50 AM »
This file .htaccess.txt is located in directory public_html on original distribution archive.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline Jay

  • Newbie
  • *
  • Posts: 5
  • Karma: +2/-0
    • View Profile
Re: pretty links?
« Reply #5 on: March 09, 2012, 07:53:07 AM »
Worth noting that any files starting with a . are considered hidden, which could be why you can't see it. Here's what it should contain

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. 

# 2. In your abantecart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://forum.abantecart.com

Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.tpl">
Order deny,allow
Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteBase 
/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*)\?*$ index.php?_route_=$[L,QSA]


(had to put in php tags sorry as code tags aren't working)

 

Powered by SMFPacks Social Login Mod