Htaccess File

yhong/nf_hack/master/www/.htaccess

HTTP_HOST, REQUEST_FILENAME, REQUEST_URI
DirectoryIndex index.php

<IfModule mod_php5.c>
    php_value memory_limit 256M
    php_value max_execution_time 18000
    php_flag magic_quotes_gpc off
    php_flag session.auto_start off
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymLinks

    RewriteCond %{HTTP_HOST} ^nayuda.com [NC]
    RewriteRule ^(.*)$ http://www.nayuda.com/ [L,R=301]

    # If there does not exist the files and directories
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l

    # Execute below statement(QSA is adding to current curl, L means last string)
    RewriteCond  %{HTTP_HOST}            ^[^.]+.nayuda.com$
    RewriteRule  ^(.+)                    %{HTTP_HOST}$1     [C] 
    RewriteRule  ^([^.]+).nayuda.com(.*) index.php?sub_domain=$1&url=%{REQUEST_URI} [QSA,L]
</IfModule>

Order allow,deny
Allow from all

SetEnv NAYUDA_DEVELOPER_MODE "true"
Exit mobile version