n***@gmail.com
2013-01-17 13:29:02 UTC
My website is superhost.gr and i also have many other addon domains and their respective folders to the same cPanel.
I use the following directive to rewrite all .html requests to a python script.
--------------------------------------------
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^/?(.+\.html) /cgi-bin/counter.py?htmlpage=$1 [L,PT,QSA]
--------------------------------------------
1. Does the above RewriteRule i'm using apply to the current folder which is placed into or in ALL sub-folders as well?
2. Should i isolate superhost.gr's website content(index.html, data folder, .htaccess , cgi-bin[even this can?)) in it's respective superhost.gr folder or i would still have loading issues?
or perhaps,
i should maintain superhost.gr's website content within /home/nikos/public_html as it is now?
That would also require to alter .htaccess directive to only rewrite .html files pertaining to superhost.gr's specific requests, and NOT affect the other folders as well, which exist for the other addon domains.
Can you please alter the existing .htaccess code to ONLY apply on superhost.gr's specific .html requests? (i don't like the idea of creating separate .htaccess files for every folder to disable the engine off)
What of the above solutions would work best?
I use the following directive to rewrite all .html requests to a python script.
--------------------------------------------
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^/?(.+\.html) /cgi-bin/counter.py?htmlpage=$1 [L,PT,QSA]
--------------------------------------------
1. Does the above RewriteRule i'm using apply to the current folder which is placed into or in ALL sub-folders as well?
2. Should i isolate superhost.gr's website content(index.html, data folder, .htaccess , cgi-bin[even this can?)) in it's respective superhost.gr folder or i would still have loading issues?
or perhaps,
i should maintain superhost.gr's website content within /home/nikos/public_html as it is now?
That would also require to alter .htaccess directive to only rewrite .html files pertaining to superhost.gr's specific requests, and NOT affect the other folders as well, which exist for the other addon domains.
Can you please alter the existing .htaccess code to ONLY apply on superhost.gr's specific .html requests? (i don't like the idea of creating separate .htaccess files for every folder to disable the engine off)
What of the above solutions would work best?