Discover Centmin Mod today
Register Now

Joomla Just transfer a joomla site and i am getting forbidden error

Discussion in 'Blogs & CMS usage' started by pamamolf, Jul 8, 2014.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    4:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    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:

    [​IMG]

    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?
     
    Last edited: Jul 8, 2014
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    4:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    It seems that was working on Apache because of this?

    .htaccess

    Code:
    RewriteRule ^guide\/(.*)$ /new/$1
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Last edited: Jul 8, 2014
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    4:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    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 :
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    4:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    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]
    
     
  6. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    10:43 AM
    latest
    latest
    Have you tried researching yourself on Google before asking here?
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  8. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    4:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Yes and i think i need to convert the second one to nginx format but i don't know how :(
     
  9. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    10:43 AM
    latest
    latest
    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.
     
  10. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  11. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    4:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    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 :)
     
    Last edited: Jul 8, 2014
  12. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    4:43 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    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 :)
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah unfortunately that is limitation of Nginx it doesn't support .htaccess and Apache mod_rewrites so need to work with Nginx rewrite conversions.