Results 1 to 1 of 1

Thread: Static Url by Mod-rewrite module!

  1. #1
    Join Date
    May 2005
    China & France

    Default Static Url by Mod-rewrite module!

    By default, AIHS use PHP itself to implement static url without Mod_rewrite module. But this requires install PHP as module of apache.

    If PHP is installed as CGI module,you will not view images by static url, such as

    If you can not edit php.ini to modify this,you can use mod_rewrite to make static url:
    1.Find these lines in ".htaccess":
    #RewriteRule   ^show\.php/(.*)$ show2.php?img=$1 [L]
    #RewriteRule   ^out\.php/([a-z]{1})(.*)$ out2.php?$1=$2&%{QUERY_STRING} [L]
    #RewriteRule   ^view\.php/(.*)$ view2.php?img=$1 [L]
    #RewriteRule   ^image\.php/([a-z]{1})(.*)$ images2.php?$1=$2&%{QUERY_STRING} [L]
    Uncoment these lines:
    RewriteRule   ^show\.php/(.*)$ show2.php?img=$1 [L]
    RewriteRule   ^out\.php/([a-z]{1})(.*)$ out2.php?$1=$2&%{QUERY_STRING} [L]
    RewriteRule   ^view\.php/(.*)$ view2.php?img=$1 [L]
    RewriteRule   ^images\.php/([a-z]{1})(.*)$ images2.php?$1=$2&%{QUERY_STRING} [L]
    2.Rename these files to new filenames:
    3.Remember to enable static url from admin panel:
    To enable static url,login in admin panel,browser to "Site>configuration>URL-Rewrite Setting",select 'yes' for "Enable Static Url for site?".
    Last edited by yabsoft; 06-05-2008 at 05:05 PM.

Similar Threads

  1. Static url issue!
    By yabsoft in forum Troubleshooting And Problems
    Replies: 12
    Last Post: 07-10-2009, 06:28 AM
  2. how i install LWP Module for MFHS
    By zahio in forum General
    Replies: 2
    Last Post: 07-26-2007, 04:17 PM
  3. static and dynamic
    By Quicko in forum MFHS v1.1
    Replies: 6
    Last Post: 04-16-2007, 05:37 AM
  4. LWP module
    By daud14 in forum MFHS v1.1
    Replies: 3
    Last Post: 04-11-2007, 10:40 PM
  5. suexec module problematic with .htaccess?
    By blogmaster2003 in forum Bug Reports
    Replies: 2
    Last Post: 11-29-2005, 01:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts