CodeIgniter Forums
problem with subdomain on hosting(Godaddy) .htaccess - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: problem with subdomain on hosting(Godaddy) .htaccess (/showthread.php?tid=33061)



problem with subdomain on hosting(Godaddy) .htaccess - El Forum - 08-13-2010

[eluser]harman[/eluser]
hi to all,
-----i have problem with my "sub domains"( Please suggest .htaccess settings)-------

i have two domains on(Godaddy.com) in my hosting account.

"www.domain_1.com" is Primary Domain(which is completely based on CodeIgniter FrameWork).

"www.domain_2.com" is Secondary Domain Which is Fully STATIC site("HTML ONLY")

the problem is when i access Static site with Invalid url("Wrong Path") it show Errors Of "CodeIgniter 404 Page Not Found"

i don't want that . because i am not using CI on that site("www.domain_2.com") . then why this happen .


here some details----

---FileSystem-------------

--www.domain_1.com(Root Domain or Primary Domain)
|
|-CI(System)
|-index.php
|-.htaccess
|
|-domain_2(Dir) Static Data
|-index.html
|-dir(Contains all Files)

-End-FileSystem-------------

---.htaccess-------------

Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php index.html index.htm
RewriteEngine on
RewriteCond $1 !^(index\.php|img|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

---End .htaccess-------------



-----Please Help Me.


problem with subdomain on hosting(Godaddy) .htaccess - El Forum - 08-15-2010

[eluser]Unknown[/eluser]
sory bro, i can't help you, i am newbie. Sad