Page 1 of 1
URL Alias
Posted: Fri Sep 21, 2007 9:03 am
by OneBadFlower
stupid question but...
what is it? can you give me an example of what it makes different if i use it?
have things running fairly smooth and dont want to mess it up if it won't be helpful.
thanks for your time.
Re: URL Alias
Posted: Fri Sep 21, 2007 11:02 am
by tchemis
Hello,
URL Aliases are shortcuts for your website, if you notice when viewing a product or something similar you have a huge URL in the address bar,
http://domain.tld/index.php?controller= ... oduct_id=1. Search engines do not generally like this. When you enable URL Alias your URL's will look like so
http://domain.tld/Product-1/ this is not only easy to copy and paste for reference, but search engines prefer this method.
As far as I know, this is currently broken in 0.7.6.1, if you want to get more information, key in "Search Engine Friendly URL" in your search engine.
If you want to see this working live look at
http://demo.opencart.com/
Re: URL Alias
Posted: Fri Sep 21, 2007 1:03 pm
by OneBadFlower
tchemis,
thanks for the explanation.
what is wrong if i turn it on and it uses the new url but i get a 404 error? did i miss a step somewhere?
Re: URL Alias
Posted: Fri Sep 21, 2007 1:26 pm
by d77
i have not seen a 404, but as mentioned, the url alias feature is broken in 0.7.6.1. daniel is aware of this issue but not sure when the fix will be released.
Re: URL Alias
Posted: Fri Sep 21, 2007 9:15 pm
by tchemis
OneBadFlower wrote:
tchemis,
thanks for the explanation.
what is wrong if i turn it on and it uses the new url but i get a 404 error? did i miss a step somewhere?
did you rename htaccess.txt to .htaccess?
Re: URL Alias
Posted: Fri Sep 21, 2007 9:43 pm
by OneBadFlower
i did rename the file. it may have something to do with the mod_rewrite thing that's needed. not sure how/where to discover if it's there or not.
thanks man.
Re: URL Alias
Posted: Sat Sep 22, 2007 12:00 am
by tchemis
OneBadFlower wrote:
i did rename the file. it may have something to do with the mod_rewrite thing that's needed. not sure how/where to discover if it's there or not.
thanks man.
Go to
Admin > Configuration > Server Info in your store admin section and look for mod_rewrite
Re: URL Alias
Posted: Sat Sep 22, 2007 12:10 am
by d77
interesting. i've never thought to do that, however i have the url aliases working in previous opencart installations and see no "mod_rewrite" information on the server info page?
Re: URL Alias
Posted: Tue Sep 25, 2007 8:36 am
by OneBadFlower
i'm running 7.3.1 and when i look at server info there is no "mod_rewrite".
here's what my .htaccess file looks like. anyone see a mistake? it's in the top level directory of the cart.
# converts from php4 to php5 for directory
AddType x-mapp-php5 .php
# 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
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
Re: URL Alias
Posted: Fri Sep 28, 2007 7:46 pm
by BFTUK
d77 wrote:
, but as mentioned, the url alias feature is broken in 0.7.6.1. daniel is aware of this issue but not sure when the fix will be released.
Any idea on when a fix for this might be available?
Re: URL Alias
Posted: Tue Oct 02, 2007 4:40 am
by BFTUK
Any ideas when a fix for this might be available?
I'm almost ready to release a live shop using opencart but i really need 'pretty' SEO friendly URLS.
Re: URL Alias
Posted: Tue Oct 02, 2007 5:34 am
by Daniel
This wll be with the next release.
Unfortantly I have started a mamouth task of redesigning the admn. I can not release another version until its complete.
Re: URL Alias
Posted: Tue Oct 02, 2007 3:11 pm
by BFTUK
Thanks for the update Daniel.
Any idea of a timescale for this? Looks like i'll have to release with what i've got and then sort out 301 redirects for the relevant URLS.
Re: URL Alias
Posted: Wed Oct 03, 2007 4:29 am
by Daniel
BFTUK wrote:
Thanks for the update Daniel.
Any idea of a timescale for this? Looks like i'll have to release with what i've got and then sort out 301 redirects for the relevant URLS.
I would say maybe 2 weeks.
There are a few extra features I'm adding into the next release.
Re: URL Alias
Posted: Wed Oct 03, 2007 8:28 pm
by carlosmoutinho
HI,
Congrats on opencart!
I see that in the demo, url aliases are working.
Are there any code changes from the "vanilla" 0.7.6.1?
Or just a different .htaccess?