Post by david.gilbert » Wed Aug 20, 2008 6:56 pm

You probably need to set the rewritebase directive in the .htaccess file

For example,

If your stores address is http://www.yourstore.com/ the rewrite base line would read:

Code: Select all

rewritebase /

If your stores address is http://www.yourstore.com/store/ the rewrite base line would read:

Code: Select all

rewritebase /store/
Hope this helps


-Dave

Professional Website Services - http://www.davidmgilbert.com/


User avatar
Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia

Post by mardon » Wed Aug 20, 2008 8:05 pm

I have install on localhost server in http://localhost/shop
and in the .htaccess I have RewriteBase /shop/  and still The requested URL /shop/about-us.html was not found on this server.

Newbie

Posts

Joined
Wed Aug 20, 2008 2:56 am

Post by Qphoria » Wed Aug 20, 2008 9:49 pm

If you disable URL Alias, does the site work?

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by david.gilbert » Wed Aug 20, 2008 11:15 pm

Are you using apache or IIS on your localhost?

disabling url aliasing in admin -> settings will completely disable the SEO Upgrade and return the cart to stock standard.

-Dave

Professional Website Services - http://www.davidmgilbert.com/


User avatar
Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia

Post by mardon » Wed Aug 20, 2008 11:50 pm

if I disable URL aliasaing  the site not function, then i found on tehe forum that i must edit
library/environment/url.php to if ((!preg_match('/\/admin\/index.php/',$_SERVER['PHP_SELF'])) && ($this->config->get('config_url_alias'))) {

Now I have disable URL alises and the site is function

I use APACHE on kubuntu

Newbie

Posts

Joined
Wed Aug 20, 2008 2:56 am

Post by david.gilbert » Thu Aug 21, 2008 2:37 am

check to see if mod_rewrite is enabled in apache, if it isnt, using vim from a terminal window: ( I personally use vim in linux for all my editing needs, you can use what ever your comfortable with)

Code: Select all

sudo vim /var/www/httpd/httpd.conf
find the modules section of the httpd.conf

un-comment (remove the # at the beginning of the line that says) so that:

Code: Select all

#LoadModule mod_rewrite /path/to/mod_rewrite.so
becomes

Code: Select all

LoadModule mod_rewrite /path/to/mod_rewrite.so
then restart apache..

then try re-enabling url aliasing and generating the url aliases.

-Dave

Professional Website Services - http://www.davidmgilbert.com/


User avatar
Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia

Post by boraz » Mon Aug 25, 2008 5:27 am

Much thanks for your work guys, really nice contribution.
I've tested it and everything went fine. However when i cleaned url_alias table i'm unable to open url_alias controller because of this error:
Warning: vsprintf() [function.vsprintf]: Too few arguments in /usr/local/apache/www/htdocs/mobilex.com.pl/mobilex/library/database/database.php on line 42
Error: Query was empty
Error No: 1065
Any ideas how to fix it?
Thanks

Newbie

Posts

Joined
Tue Jul 29, 2008 5:37 am

Post by Qphoria » Mon Aug 25, 2008 5:37 am

IIRC, I think that means either there are more (or less) parameters specified than there are being retrieved from db query. Or one of those parameters was unexpectedly empty. Either way, david should probably look into it.

I had that (or something similar) in a contrib i made that didn't show up except under weird circumstances and that and I think that was my solution.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by boraz » Mon Aug 25, 2008 6:16 am

Oh, and one more issue. Products links in the sub-categories won't convert (they look like: index.php?controller=product&path=23_41&product_id=1793). For the main categories it's working fine.
Thanks for help.

Newbie

Posts

Joined
Tue Jul 29, 2008 5:37 am

Post by Lasse » Wed Aug 27, 2008 1:46 am

First, thanks for a great contrib! Works like a charm :)

One question:

Is there a way to convert the danish letters "Æ", "Ø" and "Å"  to  "ae", "o", and "aa" automatically ?

User avatar
New member

Posts

Joined
Fri Feb 29, 2008 11:56 pm


Post by Qphoria » Wed Aug 27, 2008 2:17 am

If you open the admin/controller/generate_url_alias.php file you should be able find some string replacements near the bottom that look like:

$alias = str_replace('*', '', $alias);

You should likely be able to add:

$alias = str_replace('Æ', 'ae', $alias);
$alias = str_replace('Ø', 'o', $alias);
$alias = str_replace('Å', 'aa', $alias);

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SiteE@se » Fri Aug 29, 2008 1:28 am

david.gilbert wrote: Change the product Alias Generation to show /category/product-1.html instead of /category-product-1.html - Suggested by bruce Completed
Hmmm ... I've just noticed that I don't seem to be getting /category-subcategory-product1.html type aliases.  Just the product or category name is being picked up, i.e. it isn't going down through the levels.  This is a problem when there are sub-categories that have the same name, e.g. Ladies Shoes->Casual  and Mens Shoes-> Casual.

I'm using Qphoria's category contrib in this configuration.  I've double checked that all the latest files in version 4 (9 August) are actually being used.  I've also gone back and double checked the original test site I used when firth trying this contrib and notice it behaves the same way .... can't understand why I didn't pick it up before.

Any thoughts? ???

Chris
[PS - When is the change quoted above (category/product-1.html) likely to be released?]

Chris @ SiteE@se Web Design


Active Member

Posts

Joined
Mon Dec 17, 2007 7:40 am
Location - UK

Post by Qphoria » Fri Aug 29, 2008 1:59 am

SiteE@se wrote: Hmmm ... I've just noticed that I don't seem to be getting /category-subcategory-product1.html type aliases.  Just the product or category name is being picked up, i.e. it isn't going down through the levels.  This is a problem when there are sub-categories that have the same name, e.g. Ladies Shoes->Casual  and Mens Shoes-> Casual.
This looks similar to boraz's comment above.
boraz wrote: Oh, and one more issue. Products links in the sub-categories won't convert (they look like: index.php?controller=product&path=23_41&product_id=1793). For the main categories it's working fine.
Thanks for help.
I'm not sure if he is also using the sub-category contrib, tho I don't think it is related. I will try it on my test site without my sub-cat contrib.


-EDIT-
OK, just tried it and I am also seeing this issue, even without the subcats mod.
Last edited by Qphoria on Fri Aug 29, 2008 2:13 am, edited 1 time in total.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SiteE@se » Fri Aug 29, 2008 5:10 am

Qphoria wrote: OK, just tried it and I am also seeing this issue, even without the subcats mod.
Glad it's probably not just me missing something obvious then!  I'm sure that David & Bruce will have had this working for David to have reported the neater method of displaying the alias, using '/' rather than '-'

Chris @ SiteE@se Web Design


Active Member

Posts

Joined
Mon Dec 17, 2007 7:40 am
Location - UK

Post by david.gilbert » Fri Aug 29, 2008 6:34 am

Not quite finished the other required mods yet.. waiting til they're done ;)

Will be a new release soon!

-Dave

Professional Website Services - http://www.davidmgilbert.com/


User avatar
Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia

Post by SiteE@se » Fri Aug 29, 2008 8:22 am

david.gilbert wrote: Not quite finished the other required mods yet.. waiting til they're done ;)
Does this mean that there are other things that need doing, 'mod-wise',  before the category aliasing will work correctly, i.e. category/subcategory/product.html ?
Will be a new release soon!
Looking forward to it, Dave  :)

Chris @ SiteE@se Web Design


Active Member

Posts

Joined
Mon Dec 17, 2007 7:40 am
Location - UK
Who is online

Users browsing this forum: No registered users and 1 guest