hi, my site is http://tamilmp3online.orutube.com when ever i click any link in the site it is automatically being re-directed to http://tamilmp3online.orutube.com/member.php?uname= and i found .htaccess file is missing in the server. my domain path in server is /home/aranand/public_html/tamilmp3online kindly let me know how to create a .htaccess file to solve this problem. thanks in advance. regards arunmani
You should already have a .htaccess file under /home/aranand/public_html directory. Goto 'File Manager' from cPanel and select the option to view hidden files.
Yes, madaboutlinux pointed it out, you should be also able to view it if you login into your account via FTP. If there isn't a .htaccess file, simply create one file on your computer named ".htaccess" and upload it to the public_html folder. If you do have a subdomain and it needs it's own .htaccess file, simple place a new .htaccess file in the subdomains directory - Apache will not process the main .htaccess (in the public_html) if there is a .htaccess in the subdomain folders everytime it is opened your subdomain.
i know to create blank .htaccess file. i want to to create the .htaccess file so that the above mentioned problem will be solved. help me to solve it. regards arunmani
Can you post the .htaccess in the public_html, so we can check if there are any RewriteRules that might be interfering with the subdomain ?
following code is written in the .htaccess file located in the Public_html folder: <IfModule mod_suphp.c> suPHP_ConfigPath /home/aranand <Files php.ini> order allow,deny deny from all </Files> </IfModule> whether the above code cause the problem i mentioned??
As you mention that your website is redirecting to some other page, it simply means that there is already some redirection in place. I would like you to share the code of htaccess file
actually their is no .htaccess file in that sub-domain.(at http://tamilmp3online.orutube.com) kindly let me know, if u can create one for that. the application installed in the sub-domain is musicboxv2.com
I got the point, do you have full access of your website. If yes than check if there is header redirection set on your index page. or send me code of your index file.
hi, here i'm unable to attach the index.php with this post. anyway i zipped it and uploaded it in http://tamilmp3online.orutube.com/index.zip kindly download and check it...also let me know whats the problem. thanks in advance. regards arunmani
# To redirect all users to access the site WITH the www. prefix, # (http://example.com/... will be redirected to http://www.example.com/...) # adapt and uncomment the following: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.mt-example\.com$ [NC] RewriteRule ^(.*)$ http://www.mt-example.com/$1 [L,R=301]
# To redirect all users to access the site WITH the www. prefix, # (http://example.com/... will be redirected to http://www.example.com/...) # adapt and uncomment the following: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.mt-example\.com$ [NC] RewriteRule ^(.*)$ http://www.mt-example.com/$1 [L,R=301]