addon domain htaccess |
[eluser]melpuggi[/eluser]
Hello, I installed some sites with addon domain and using with CI them, but addon domains cannot work rewrite rules, .htaccess content; RewriteEngine on RewriteBase / RewriteCond $1 !^(index\.php|folders) RewriteRule ^(.*)$ index.php/$1 [L] I tried /www/site_folder or /site_folder etc... What is the error, me or server?
[eluser]Ruben Müller[/eluser]
Check this one, is it really the base? Code: RewriteBase / And instead of this: Code: RewriteRule ^(.*)$ index.php/$1 [L] Code: RewriteRule ^(.*)$ ./index.php/$1 [L] Code: RewriteRule ^(.*)$ index.php?$1 [L] Code: RewriteRule ^(.*)$ ./index.php?$1 [L] Is mod_rewrite activated? Check it with a more simple .htaccess!
[eluser]melpuggi[/eluser]
Let me draw a diagram /public_html (this is the main site and has an htaccess with contents) /public_html/subdomain (this is the subdomain and I am using it with codeigniter) my subdomain htaccess content: Code: RewriteEngine On I tried it with some changes. But error gives or does not work. Thanks for your reply.
[eluser]Pramod[/eluser]
I have also problem in addon domain. It shows 500 internal error. Please help me to set up the add on domain htacess for codeIgnitor to hide index.php from url.
[eluser]InsiteFX[/eluser]
Here is what you need to put in you htaccess file in the directory that houses your add-on domain ie. www.the-hosting-domain.com/add-on/ : Code: Code: <IfModule mod_rewrite.c> And add this to the .htaccess file in the root domain: ie. www.thehostingdomain.com Code: Code: Options +FollowSymlinks And another way: Code: <IfModule mod_rewrite.c> Enjoy InsiteFX
[eluser]Pramod[/eluser]
I am having problem again with codeignitor and htacess. INSITEFX please help me for following domains. Following are the deatils: Main domain:www.pramodpoudel.com Addon domain in folder inside public_html : planmakers.com.np Addon domain name : www.planmakers.com.np Thanks in advance
[eluser]InsiteFX[/eluser]
Code: RewriteBase /public_html/ Enjoy InsiteFX
[eluser]Pramod[/eluser]
I have done as you told. But could solve the problem. I have some problem in server too. So, could not figure out the error whether of server or of htacess. Please help me.
[eluser]marinaccio[/eluser]
Who is your web host? I have several sites on BlueHost, all addons, using a setup similar to this: .htaccess RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|images|img|css|js|robots\.txt) RewriteCond $1 !^(index\.php|application/views/|robots\.txt|install|favicon\.ico|documents) RewriteRule ^(.+)$ index.php?$1 [L] config.php $config['base_url'] = "http://www.addondomainnamehere.com/"; $config['index_page'] = ""; Hope that helps, if not, just post back, CI tends to have some really sharp people lurking these forums! -Joe
|
Welcome Guest, Not a member yet? Register Sign In |