Panilux Panel'de çalışan
PrestaShop için Nginix ayarları aşağıdaki gibidir.
panilux panelde domain sekmesinde rewrite ayarları kısmından bu kodlar eklenebileceği gibi winscp üzerinde /sites/nginx-confs/siteadresi.com.rewrites dosyasi üzerinden de değişiklikler yapilabilir
charset utf-8;
client_max_body_size 200M;
######################################################
## MultiSite Support
## WORLD SITES
## For Google optimisation reasons, this customer has a .co.uk domain for UK customers
## and a .com for global visitors
## the .com url will be in the following format:
## NOTE: This is a multisite url NOT a prestashop language URL
## www.myshop.com/us (USA)
## www.myshop.com/fr (France)
## www.myshop.com/ca (canada)
## etc. These URLs are then registered as country specific in Google Webmaster Tools.
## NEXT: if multilingual is also required
## the url format is:
## www.myshop.com/ca/fr
## www.myshop.com/ca/en
## etc.
#######################################################
## only rewrite for a given domain
## this could be moved to the server definition file instead of here...
## however I have placed it here to save having two different
## server definitions
##
if ($http_host ~ "^www.indirimonline.com$") {
rewrite '^/([a-zA-Z]{2})$' /$1/ redirect;
rewrite '^/([a-zA-Z]{2})/(.*)' /$2;
}
rewrite ^/api$ /api/ last;
## ALL IMAGES REWRITE
rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2$3.jpg last;
rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3$4.jpg last;
rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg last;
rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg last;
rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg last;
rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg last;
rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg last;
rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg last;
rewrite ^/c/([0-9]+)(-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*.jpg$ /img/c/$1$2.jpg last;
rewrite ^/c/([a-zA-Z-]+)/[a-zA-Z0-9-]+.jpg$ /img/c/$1.jpg last;
rewrite ^/([0-9]+)(-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*.jpg$ /img/c/$1$2.jpg last;
rewrite ^/images_ie/?([^/]+)\.(jpe?g|png|gif)$ /js/jquery/plugins/fancybox/images/$1.$2 last;
rewrite '^/order/step([0-9]).html$' /index.php?controller=order&step=$2 last;
rewrite '^/quick-order$' /index.php?controller=order-opc last;
rewrite '^/password-recovery$' /index.php?controller=password last;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?q=$1 last;
}
location /api {
rewrite ^/api/(.*)$ /webservice/dispatcher.php?url=$1 break;
}
# Do not log robots.txt or favicon.ico file requests
location ~* ^/(favicon.ico|robots.txt)$ {
access_log off;
log_not_found off;
}
# Custom Prestashop 404 page
error_page 404 /index.php?controller=404;
# Set long expirey values for CSS and Images (assuming you dont change them too often)
location ~* ^.+.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|htm|html|js|css|mp3|swf|ico|flv|xml) {
access_log off;
expires 30d;
}Kaynak Panilux Panel'de çalışan Sub Domain Wordpress için Nginix ayarları aşağıdaki gibidir.
panilux panelde domain sekmesinde rewrite ayarları kısmından bu kodlar eklenebileceği gibi winscp üzerinde /sites/nginx-confs/siteadresi.com.rewrites dosyasi üzerinden de değişiklikler yapilabilir
if (!-e $request_filename) {
rewrite . /index.php last;
}
@victories arkadaşıma yol gösterici olduğu için teşekkür ederim