Post by madaha » Mon Nov 19, 2007 12:17 am

URL alias is so important for SEO, but Opencart 0.7.7 has a problem in this feature, all URL alias link to homepage.

All non exist pages redirected to homepage automatically.  Maybe the URL alias can be found and treated as non exist, then redirect to home page automatically.

Anyone have a solution for this problem?

New member

Posts

Joined
Thu Sep 06, 2007 6:02 pm

Post by maxfalduto » Tue Nov 27, 2007 8:21 pm

Same problem for me!

Many people try hard .htaccess.

Mybe somebody opencart 's staff  can post the code here.

Hey Boys Let's go help us !!

Newbie

Posts

Joined
Thu Nov 22, 2007 11:45 pm

Post by Daniel » Thu Dec 06, 2007 5:34 am

Can some please add

print_r($_SERVER);

to the the bottom of there script and sernd me the information?

I have had this propblem with a few servers, but thought I got rid of it.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by madaha » Fri Jan 18, 2008 3:32 pm


New member

Posts

Joined
Thu Sep 06, 2007 6:02 pm

Post by Bogdan I » Tue Feb 12, 2008 4:36 pm

madaha wrote: problem sloved. See here: http://forum.opencart.com/index.php/topic,733.0.html
this is not a fix, it's just a workaround, not even e pretty one.

www.example.com/product/product_id/2323 - it is not even close to SEO friendly, just a "human readable" URL, the default system would be better when will work

Daniel, this is my print_r($_SERVER) result. Hope the new 0.8 version fix this bug.

Code: Select all

Array
(
    [REDIRECT_STATUS] => 200
    [HTTP_HOST] => localhost
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
    [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip,deflate
    [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
    [HTTP_KEEP_ALIVE] => 300
    [HTTP_CONNECTION] => keep-alive
    [HTTP_REFERER] => http://localhost/oc/test-category
    [HTTP_COOKIE] => PHPSESSID=48da531643f65086fb92a21b3600102d; test=accept
    [PATH] => C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:Program FilesIntelDMIX;C:Program FilesQuickTimeQTSystem
    [SystemRoot] => C:WINDOWS
    [COMSPEC] => C:WINDOWSsystem32cmd.exe
    [PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    [WINDIR] => C:WINDOWS
    [SERVER_SIGNATURE] => 
Apache/2.2.4 (Win32) PHP/5.2.3 Server at localhost Port 80


    [SERVER_SOFTWARE] => Apache/2.2.4 (Win32) PHP/5.2.3
    [SERVER_NAME] => localhost
    [SERVER_ADDR] => 127.0.0.1
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 127.0.0.1
    [DOCUMENT_ROOT] => C:/Documents and Settings/bogdan.iacob/My Documents/Server
    [SERVER_ADMIN] => bogdan.iacob@ringier.ro
    [SCRIPT_FILENAME] => C:/Documents and Settings/bogdan.iacob/My Documents/Server/oc/index.php
    [REMOTE_PORT] => 2485
    [REDIRECT_URL] => /oc/test-category
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /oc/test-category
    [SCRIPT_NAME] => /oc/index.php
    [PHP_SELF] => /oc/index.php
    [REQUEST_TIME] => 1202804771
    [argv] => Array
        (
        )

    [argc] => 0
)

Newbie

Posts

Joined
Mon Oct 29, 2007 4:17 pm
Location - Bucharest
Who is online

Users browsing this forum: No registered users and 5 guests