www.oktrips.com

www.oktrips.com is very power e-commerce site about the China historical places of interest. Such as Forbidden City, Great Wall At Badaling Or Badaling, Summer Palace and so on! Oktrips provide top quality tours, lowest prices, Safe and Secure Purchasing, Multi-currency, Concise user experience…

Welcome to oktrips, and welcome to China!

Yii Framework met all our needs! It worked equally good for both rapid prototyping and large scale web applications.

Our Home Page

2202

home.jpg

Good work! Nice and clear design!

Look awesome…great job. Best of luck :)

thank you, thank you all!

Hey myoktripsyii ,

Could you please tell me that what you have done for a ecommerce feature.How did you integrate a payment system in this site and a SEO friendly url concept in this application.

i would love to know this from you if you can share it with me. :)

Wow!!!!! Looks very beautiful and very practical, especially the Slideshow

ok, a litter later, i will introduce the urlManager about yii in apache/nginx serer.

Thanks …i will wait for your response. :)

sorry, the yii forum cannot make more than 3 posts in first day.

Step 1 in the Apache server:

only need make a file name ".htaccess" in the root of the site

the content is:

Options +FollowSymLinks

IndexIgnore /

RewriteEngine on

if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

otherwise forward it to index.php

RewriteRule . index.php

Step 1 in the nginx server: (edit the nginx.conf)

server {

    listen  80;


    server_name  test.com www.test.com;


    root   /www/test.com;





    access_log /www/test.com/logs/access.log;


    error_log /www/test.com/logs/error.log;





    error_page   500 502 503 504  /500.html;


    location = /500.html {


        root   /usr/nginx/html;


    }





    location / {


        rewrite ^/(.*)$ /index.php/$1 break;


        fastcgi_pass   127.0.0.1:9000;


        fastcgi_index  index.php;


        fastcgi_param  PATH_INFO $fastcgi_script_name;


        include fastcgi.conf;


        index  index.php;


    }





    location ~* ^.+\.(js|ico|gif|jpg|jpeg|pdf|png|css|swf|xml)$ {


      access_log   off;


      expires      0d;


    }

}

Step 2 edit the main.php (/protected/config/main.php)

'components'=>array(  


      ...  


      'urlManager'=>array(  


            'urlFormat'=>'path',  


            'showScriptName'=>false,//hidden index.php  


            'urlSuffix'=>'.html',//the Suffix of url


            'rules'=>array(  


                'activity-<title>-<id:\d+>'=>'product/viewProduct',


            ),  


      ),  


      ...  


  ),  

if you have any question, i will do my best to answer!




Step 1 in the nginx server: (edit the nginx.conf)

server {

listen 80;

server_name test.com www.test.com;

root /www/test.com;


access_log /www/test.com/logs/access.log;

error_log /www/test.com/logs/error.log;


error_page 500 502 503 504 /500.html;

location = /500.html {

root /usr/nginx/html;

}


location / {

rewrite ^/(.*)$ /index.php/$1 break;

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

fastcgi_param PATH_INFO $fastcgi_script_name;

include fastcgi.conf;

index index.php;

}


location ~* ^.+\.(js|ico|gif|jpg|jpeg|pdf|png|css|swf|xml)$ {

access_log off;

expires 0d;

}

}



Why you are adding this configurations in the nginx server: (edit the nginx.conf).i am a bit confuse here. :unsure:

sorry, i am not very clear on your question.

Well i was asking to you that … Why you are editing you server configurations here…As you mention you have mention here that you have changed the nginx server configuration files.

So,simply i am asking to you that what is the need of to edit the server configuration file here.even you can do this of things with a .htacces file also.Since,nobody have a direct access of the server configuration files.that is why i am pointing it here.

Hi myoktripsyii,

Great work on the site :) I’m just curious because I noticed that the site preforms very well from Taiwan, where I’m at. Where is the site hosted?

Additionally, did you start with any ecommerce extensions?

Thanks for the pointers.

Chuender

Nice clean design…