Hi I just move my friend site and i am getting forbidden when i try to access it using the domain on the new server: I notice that is auto redirect from: domain.com to domain.com/guide/ <----No index.php file here and only a few files: as this way worked before on Apache... Then i go to root to find the redirect on index.php and i found this: So i remove it and then is going again to that path and i am getting again this forbidden Any ideas? I think the error is normal as there is not an index file there but why after removing the redirect code from index is going again there?
It seems that was working on Apache because of this? .htaccess Code: RewriteRule ^guide\/(.*)$ /new/$1
htaccess doesn't work on nginx you need to convert to nginx rewrites i.e https://community.centminmod.com/threads/how-to-config-rewrite-in-joomla-3.659/ maybe you can help each other as i have no experience with joomla for that specific htaccess rewrite the nginx version is - to be placed in your / location context Code: rewrite ^/guide/(.*)$ /new/$1;
Pointing my browser to : http://www.mydomain.com/new/ the site working I don't know how can i do this from nginx permanent and avoid te redirection to /guide/ Loading very slow up to 10 seconds and no images are there for some profiles.... I think i must convert the .htaccess :
Don't know how to do it working site link: http://www.escortstours.com/new/ This one is in the root: Code: RewriteBase / RewriteRule ^guide\/(.*)$ /new/$1 RewriteCond %{HTTP_HOST} ^www\.escortstoursgr\.com #RewriteRule ^index.php /new/index_greek.php [QSA,L] #RewriteRule .* /escortstoursgr.com RewriteCond %{HTTP_HOST} ^escortstoursgr\.com #RewriteRule ^index.php /new/index_greek.php [QSA,L] #RewriteRule .* /escortstoursgr.com RewriteRule ^articol\/([0-9]*) news.php?id=$1 RewriteRule ^resurse\/([0-9]*) resurse.php?id=$1 RewriteRule ^faq\/([0-9]*) faq.php?id=$1 RewriteRule ^reply\/(.*)\/(.*)\/(.*)\/(.*) confirm.php?type=$1&pass=$2&email=$3 RewriteRule ^country\/(.*)\/(.*) escorts.php?filter=country&country=$1 RewriteRule ^city\/(.*)\/(.*) escorts.php?filter=city&city=$1 RewriteRule ^(.*)\/escorts.php escorts.php?filter=$1 RewriteRule ^(.*)\/escorts.php?page=(.*) escorts.php?filter=$1&page=$2 RewriteRule ^(.*)\/(.*)\/escorts.php escorts.php?filter=country&country=$2 RewriteRule ^(.*)\/(.*)\/escorts.php?page=([0-9]*) escorts.php?filter=country&country=$2&page=$3 RewriteRule ^(.*)\/(.*)\/(.*)\/escorts.php escorts.php?filter=country&country=$2&city=$3 RewriteRule ^(.*)\/(.*)\/(.*)\/escorts.php?page=([0-9]*) escorts.php?filter=country&country=$2&city=$3&page=$4 RewriteRule ^admin\/(.*)\/escorte.php admin/escorte.php?filter=$1 RewriteRule ^(.*)\/escorts.php?page=(.*) escorts.php?filter=$1&page=$2 RewriteRule ^home\/index.php index.php RewriteRule ^escort\/([0-9]*) escort.php?escort_id=$1 RewriteRule ^book-escort\/([0-9]*) book-escort.php?escort_id=$1 RewriteRule ^add-review\/([0-9]*) review.php?escort_id=$1&add=1 RewriteRule ^review\/([0-9]*) review.php?escort_id=$1 RewriteRule ^read_review\/([0-9]*)\/ read_review.php?escort_id=$1 RewriteRule ^independent-escorts\/([0-9]*) escorts.php?independent=1&page=$1 RewriteRule ^agency-escorts\/([0-9]*) escorts.php?independent=0&page=$1 RewriteRule ^city-tours\/([0-9]*) city_tours.php?page=$1 RewriteRule ^escort-agency\/([0-9]*) escort-agency.php?aid=$1 RewriteRule ^add-agency-review\/([0-9]*) add-agency-review.php?id=$1 RewriteRule ^escorts\/reviews\/([0-9]*) escorts_reviews.php?page=$1 And this one i think is the one that i must convert that is in the /new/ folder inside: Code: RewriteRule ^picture/(.*)__(.*).jpg$ /new/pix/$2/0.jpg RewriteRule ^thumb/(.*)_Escorts/(.*)__(.*)_(.*)$ /new/inc/phpThumb/phpThumb.php?fltr[]=wmi|../../watermark/thumb.png|C|100&zc=1&w=138&h=190&src=/new/pix/$3/$4 RewriteRule ^medium/(.*)_Escorts/(.*)__(.*)_(.*)$ /new/inc/phpThumb/phpThumb.php?fltr[]=wmi|../../watermark/medium2.png|C|100&zc=1&w=210&h=280&src=/new/pix/$3/$4 RewriteRule ^small/(.*)_Escorts/(.*)__(.*)_(.*)$ /new/inc/phpThumb/phpThumb.php?fltr[]=wmi|../../watermark/small.png|C|100&zc=1&w=100&h=130&src=/new/pix/$3/$4 RewriteRule ^week/(.*)__(.*)_(.*).jpg$ /new/inc/phpThumb/phpThumb.php?fltr[]=wmi|../../watermark/thumb.png|C|100&zc=1&w=168&h=190&src=/new/pix/$2/$3.jpg RewriteRule ^big/(.*)_Escorts/(.*)__(.*)_(.*)$ /new/inc/phpThumb/phpThumb.php?fltr[]=wmi|../../watermark/big.png|C|100&zc=0&w=400&h=380&src=/new/pix/$3/$4 RewriteRule ^smlpw__(.*).jpg$ ../../new/inc/phpThumb/phpThumb.php?fltr[]=wmi|../../../watermark/small.png|C|100&zc=1&w=60&h=130&src=../new/pix/$1/0.JPG [NC]
nginx doesn't use .htaccess all rewrite rules go into nginx /usr/local/nginx/conf/conf.d/yourdomain.com.conf vhost files like other examples shown at https://community.centminmod.com/threads/centmin-mod-nginx-blog-cms-guides.131/ i also posted an example in https://community.centminmod.com/threads/how-to-config-rewrite-in-joomla-3.659/ based on the official documentation https://community.centminmod.com/threads/how-to-config-rewrite-in-joomla-3.659/#post-3012
You're out of luck then. As @eva2000 said he has no experience with Joomla. He already pointed out links that could help you solve your problem. Try to read and use Google for once.
yeah try https://community.centminmod.com/th...d-i-am-getting-forbidden-error.723/#post-3431 and that's what I do too, use google
Oki think i found something but i must test it first and then i post here the solution for the forum users I convert the .htaccess content using this super converter http://winginx.com/en/htaccess And now it is auto redirecting to the /guide/ folder and the site is opening but very slow about 15sec... Not all images are displaying correctly yet but i am trying to fix it
The rewrites seems to work from that converter but the site i general no I give up My friend is back to Apache and all are ok now due to rewrite .htaccess rules Anyway thanks all of you
yeah unfortunately that is limitation of Nginx it doesn't support .htaccess and Apache mod_rewrites so need to work with Nginx rewrite conversions.