I have it set up where all my .html files are able to receive the network ads. Hosting service: IPowerWeb Has anyone here that uses subdomains have any redirecting problems after installing the script? I came to find out, by messing around with the htaccess file that the rewrite rule hampers with the subdomain redirect. As soon as I remove it my subdomains work fine. Example: Here is my URL address http://resources.MyDomain.com/ which shows up without the htaccess code. As soon as I add the code and remove my 404 error code the same URL does not show up. Any suggestions? AddType application/x-httpd-php .php .htm .html <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} ^(.*)\.html [NC] RewriteRule ^(.*) /passthru.php?file=$1 </IfModule> And by the way.. as long as I only have ONE account set up, it is okay to have multiple subdomains, correct? If SubDomains are not tolerated or supported, please let me know. I have found that another account should not be used for sub domains but no clear answer on the use of subdomains.
Getting to think about this. The rewrite rule only accounts for files that end with the extension of .html. I belief a subdomain does not look for a file extentions it only looks for the folder. So http://resources.Domain.com equals www.domain.com/resources/ Is there a way to add a rewrite rule that if there is not file extension, maybe if it just ends with a forwards slash that it also applies a rewritecondition of some sort. I am just spitting out ideas. Maybe something likes this (Doesn't work, tried it) AddType application/x-httpd-php .php .htm .html <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} ^(.*)\ [NC,OR] RewriteCond %{REQUEST_FILENAME} ^(.*)\.html [NC] RewriteRule ^(.*) /passthru.php?file=$1 </IfModule>
I attempted to add "index.html" to the link but I guess subdomain redirects from folder are a little different. What I am attempting to do is avoid having to convert all my html files to php which can be a dauting task. Anyone have any knowledge of how subdomain are redirected?