[solved] 403 error redirecting .asp pages (web site re-coded in PHP)

Discussion in 'Apache Migration/Compatibility' started by ffeingol, Apr 18, 2018.

  1. ffeingol

    ffeingol Well-Known Member

    We have a customer that migrated a web site from Windows/.asp to a WordPress based site. They started adding .htaccess code to redirect the old .asp pages to the new corresponding WordPress page. Any .asp page in LiteSpeed simply returns a 403 error. I've checked their .htaccess and I don't see anything that would deny the .asp pages. I've checked the cPanel httpd.conf and the LSWS settings and I don't see anything that woudl deny it there either.

    Anyone have any thoughts?

    TIA
     
  2. mistwang

    mistwang LiteSpeed Staff

    Please check the error log, it should give the reason of 403.
     
  3. ffeingol

    ffeingol Well-Known Member

    There is nothing in the sites error_log. In the main Apache error_log the only thing is that it can't find the sites 403.shmtl page (cPanel default). There is nothing in the stderr.log and it's not getting caught by modsecurity.

    Thanks
     
  4. mistwang

    mistwang LiteSpeed Staff

    How about turning on debug logging temporarily?
     
  5. ffeingol

    ffeingol Well-Known Member

    Will do, but we'll prob. have to wait off-hours to do that. It's a fairly busy server. As soon as we can get debug log, we'll get it posted.
     
  6. ffeingol

    ffeingol Well-Known Member

    Just following up on this. After a log of digging through their 1000+ line .htacess file, it was an issue with the .htaccess file, not LSWS.
     
    NiteWave likes this.

Share This Page