Post by OC2PS » Wed Aug 26, 2009 1:43 am

Anybody? Help please! :'( :'( :'( :'(

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by Daniel » Wed Aug 26, 2009 3:26 am

look!

it works for every one else. you need to research this a bit more your self.

people can not tell you what server software you are using or settings you have.

this stuff is not hard. pay somebody to have a look at it for you if you don;t have the expertise of settign this stuff up yourself.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Microsite Merchant » Wed Aug 26, 2009 5:12 am

Nice attitude.

I can't get it working either but I don't think I'll bother to ask for support.


Posts

Joined
Wed Jun 03, 2009 10:57 pm

Post by amplifywebdesign » Wed Aug 26, 2009 6:20 pm

There is a problem with your .htaccess file, your site has configured itself to use it so it isn't a problem with your settings.

I would recommend first uploading a phpinfo file to your sites root and looking at it in a browser, look for the mod_rewrite setting.

Here is the code needed to make the phpinfo file:

Code: Select all

<?php

phpinfo ();

?>
Next, back up your old .htaccess and try using this one I modified. It assumes that you have already enabled mod_rewrite, and does not tell the server to enable it. I had to use this to get it to work on my server as it didn't like the fact I was asking it to change something on it's server.

Code: Select all

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

User avatar
New member

Posts

Joined
Sat Aug 22, 2009 1:56 am
Location - Sheffield & North Wales

Post by OC2PS » Thu Aug 27, 2009 3:27 am

amplifywebdesign wrote:I would recommend first uploading a phpinfo file to your sites root and looking at it in a browser, look for the mod_rewrite setting.
First of all, thanks so much for your step-by-step help. I really appreciate it.

I tried looking at the phpinfo file in a browser, but couldn't find the word "mod_rewrite" in it. Does that mean that mod_rewrite is not enabled and I should ask my host again to change it (the last time I asked, they said the mod_rewrite is enabled by default)

The cofigure command is listed like this in the phpinfo:

Code: Select all

'./configure' '--prefix=/usr/local/lib/php-5.2.4' '--without-apache' '--with-mysql=/usr' '--with-mysqli' '--with-gd' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-tiff-dir=/usr' '--disable-debug' '--enable-discard-path' '--enable-inline-optimization' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-memory-limit' '--with-regex=system' '--with-zlib' '--enable-ftp' '--enable-sockets' '--enable-magic-quotes' '--with-gettext' '--enable-wddx' '--with-gdbm' '--with-db4' '--with-freetype-dir=/usr' '--with-curl=/usr' '--with-mhash' '--with-xsl' '--enable-calendar' '--with-mcve' '--with-dom' '--with-iconv' '--with-xmlrpc' '--with-mcrypt' '--with-bzip2' '--with-ming=/usr' '--with-pspell' '--with-openssl' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--enable-bcmath' '--enable-dbase' '--enable-exif'
amplifywebdesign wrote:Next, back up your old .htaccess and try using this one I modified.
I tried that, but to no avail! ???

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by amplifywebdesign » Thu Aug 27, 2009 3:41 am

Glad to help, had problems with it myself ;)

Is it in the same place as your index.html file?

For example if your domain has it's own store folder try putting it in the /store/ folder.

Else it should be in the root which means in theory you can load it from http://www.mydomain.com/.htaccess (although many do not allow this)

Just checking now, it is definitely called .htacess it must be (dot)htacess like a file extention is, nothing before or after.

edit: while looking at my phpinfo file I couldn't find the mod_rewrite either! So not a problem here

User avatar
New member

Posts

Joined
Sat Aug 22, 2009 1:56 am
Location - Sheffield & North Wales

Post by OC2PS » Thu Aug 27, 2009 2:39 pm

Yes, I tried placing it in both: root and shop folder; neither worked.

It is named .htaccess right now; I tried changing to .htacess (single c) as per your mail; that doesn't work either.

It is strange, this problem: since the right URL is being generated, my first instinct is that the apache mod rewrite is on and that .htaccess is being read.

The HTTP 404 error probably means that either:
The correct page is not being generated, or
The correct URL is not pointing to the page generated...
:(

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by amplifywebdesign » Thu Aug 27, 2009 4:56 pm

Whoops I missed have a 'C' out! I checked myself on my domain and if I deleted my htaccess file it would have the same error as yours, urls would appear ok but I would get 404 errors when I clicked them.

So the urls aren't being generated by htaccess, htaccess just make the whole thing work!

I think next you should look up a simple mod_rewrite htaccess script and try and see if that works.

User avatar
New member

Posts

Joined
Sat Aug 22, 2009 1:56 am
Location - Sheffield & North Wales

Post by OC2PS » Wed Sep 16, 2009 9:21 am

Finally resolved the issue. Here's how:
The simple fact is that the shop is installed in the subdirectory shop, not in root
so in .htaccess, I needed to change

Code: Select all

RewriteBase /
to

Code: Select all

RewriteBase /shop
Have a new problem though: http://forum.opencart.com/viewtopic.php?f=22&t=6401
Do SEO URLs work with languages? Can anyone please help?

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by PmX » Tue Sep 22, 2009 7:56 pm

So I have a problem with this now. I have all the settings done, all the seo keywords added, and i have the .htaccess file in the route of my shop. If i type in the address bar mydomain.com/my_section it loads the products for that section. But all the links on the shop still use the messy urls, have a missed a setting somewhere?

Thanks all

PmX
Newbie

Posts

Joined
Sat Sep 19, 2009 3:46 am
Who is online

Users browsing this forum: Bing [Bot] and 22 guests