none
PHP files migrated to asphostportal Windows Hosting, internal links stopped working RRS feed

  • Question

  • I had my website, written in PHP, on Windows 2003 server. Recently I moved them to asphostportal's Windows Hosting account. The previous developer had written URL-Rewrite rules in .htaccess which is not working on the new server. All the links on the site show asphostportal's 404 page.

    Here is the content on existing htaccess file:
     
    # Helicon ISAPI_Rewrite configuration file
       # Version 3.1.0.64
       # AddHandler x-httpd-php5-3 .php
       RewriteEngine on
    
       RewriteCond %{HTTPS} (on)?
       RewriteCond %{HTTP:Host} ^www\.(.+)$ [NC]
       RewriteCond %{REQUEST_URI} (.+)
       RewriteRule .? http(?%1s)://%2%3 [R=301]
    
    
       # RewriteRule ^(.*?\.asp)/([^/]*)/([^/]*)(/.+)? $1$4?$2=$3 [NC,LP,QSA]
    
       # RewriteRule ^(.*?\.asp)/([^/]*)/([^/]*)(/.+)? $1$4?$2=$3 [NC,LP,QSA]
       # RewriteRule ^(.*?)/(.*?)/([^/]*)/([^/]*)(/.+)? $2.asp$5?$3=$4 [NC,LP,QSA]
       RewriteRule ^(?!.*(?:admin|blog|images|tinymce|dablog)/)(.*?)/(.*?)/([^/]*)/([^/]*)(/.+)?       $2.php$7?mmid=$3&cmid=$4 [NC,LP,QSA

    Tuesday, May 5, 2015 8:43 AM