Page 1 of 1

Search Engine Friendly (SEF) URLs

Posted: Fri Jan 06, 2012 11:58 pm
by capt_midnight
Hi,

I've installed OpenCart and really like the features and options, but it seems to be lacking a SEF URL from something like this:

/index.php?route=extension/extension/info&extension_id=9999

to something like this:

/category/apple/accessories.html

Is this possible? Is there a module that I can buy to make it work this way with SEF URLs?

Thanks,
Shane

Re: Search Engine Friendly (SEF) URLs

Posted: Sat Jan 07, 2012 12:09 am
by d7a7z7e7d
All you have to do is rename the ".htaccess.txt" file in your document root to ".htaccess" and then turn on SEO Urls in the admin "System > Settings > Edit > Server > Use SEO URLs". Then, you'll notice each category and product has an SEO Keyword field that you can use to define what the friendly URL should look like. There are even extensions that will auto-populate these fields by slugifying your product or category names.

Re: Search Engine Friendly (SEF) URLs

Posted: Sat Jan 07, 2012 4:56 am
by capt_midnight
Oooo.. perfect.. I missed that. I had already copied the .htaccess, but turning that feature "on" was missing.

Thanks again for the quick response!

Re: Search Engine Friendly (SEF) URLs

Posted: Thu Apr 05, 2012 10:58 am
by Gorilla
I just tried this i renamed the file
.htaccess.txt
to
.htaccess
but right after i do that i get a
Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

Error 500
em i missing something and it doesn't make a difference if i set-up the sef url from the setting first as soon as i rename the file i'm screwed

Re: Search Engine Friendly (SEF) URLs

Posted: Thu Apr 05, 2012 11:36 am
by Johnathan
That probably means your .htaccess file has bad rewrites. Re-upload the .htaccess file for your version of OpenCart.

Re: Search Engine Friendly (SEF) URLs

Posted: Thu Apr 05, 2012 12:04 pm
by Gorilla
Once this was commented out i'm good to go

Code: Select all

#Options +FollowSymlinks

# Prevent Directoy listing 
#Options -Indexes
i'm a trial and error type guy so do i need this stuff i commented out?

Re: Search Engine Friendly (SEF) URLs

Posted: Tue Jun 19, 2012 6:06 pm
by syednayab
Hi

i renamed the Htacess file and enabled SEO Url but no luck ,

Re: Search Engine Friendly (SEF) URLs

Posted: Fri Jun 22, 2012 6:19 pm
by syednayab
Johnathan wrote:That probably means your .htaccess file has bad rewrites. Re-upload the .htaccess file for your version of OpenCart.

Thanks it worked

Re: Search Engine Friendly (SEF) URLs

Posted: Mon Jan 28, 2013 12:43 am
by Jtc-uk
so i have done just about everything i could find, changed the htaccess file name checked the SEO in the admin, entered the SEO words in with -, re-uploaded the htaccess file and renamed it again, but still nothing, the URL's are changing but i keep getting ERROR 404- PAGE NOT FOUND?

Any suggestions?

Re: Search Engine Friendly (SEF) URLs

Posted: Tue Jan 29, 2013 3:27 pm
by Axansh
HI,

Just backup your .htaccess file and and upload this code.

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

Hope it works.

Re: Search Engine Friendly (SEF) URLs

Posted: Sun Feb 03, 2013 11:31 pm
by Jtc-uk
nope still nothing, opencart say talk to hostgator, hostgator say talk to opencart, i'm at a loose end keep looking over the files and i cannot see anything that may be effecting it, but i am a noob and i'm no were near a code genius. it is probably something very simple that i have not seen, but this has been a problem for around 2 weeks now and I'm on the verge of giving up on it, but then it will annoy me every time i go to my webpage.

Re: Search Engine Friendly (SEF) URLs

Posted: Thu Feb 07, 2013 1:43 am
by Jtc-uk
ok solved the SEO problem except for one thing, everything else is working fine except when i click the home page i get the 404 message again??

Re: Search Engine Friendly (SEF) URLs

Posted: Thu Feb 07, 2013 3:26 am
by Jtc-uk
problem solved

Re: Search Engine Friendly (SEF) URLs

Posted: Wed Aug 21, 2013 4:58 am
by sputnik-1
That worked fine for me TY! I had .htaccess in my root folder and just had to enable this in the admin section under server :)