Page 1 of 1
Anyone knows how to fix the URL alias problem under 0.7.7?
Posted: Mon Nov 19, 2007 12:17 am
by madaha
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?
Re: Anyone knows how to fix the URL alias problem under 0.7.7?
Posted: Tue Nov 27, 2007 8:21 pm
by maxfalduto
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 !!
Re: Anyone knows how to fix the URL alias problem under 0.7.7?
Posted: Thu Dec 06, 2007 5:34 am
by Daniel
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.
Re: Anyone knows how to fix the URL alias problem under 0.7.7?
Posted: Fri Jan 18, 2008 3:32 pm
by madaha
Re: Anyone knows how to fix the URL alias problem under 0.7.7?
Posted: Tue Feb 12, 2008 4:36 pm
by Bogdan I
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
)