Accredited Registrar Accredited Registrar

Frequently Asked Question

FAQ / Other


htaccess File is Not Working

If you find any error or feel that your .htaccess file is not working on the server, simply copy paste the below code in to your .htaccess files under public_html folder.

Remember, if you already have contents in your .htaccess file just comment all the lines and have only these copied contents.

Now, replace your domain names in the code respectively. (olddomainname - is your current domain name and newdomainname - is the domain name to which your site should get redirected.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !olddomainname.com$ [NC]
RewriteRule ^(.*)$ http://newdomainname.com/$1 [L,R=301]

Just search for your domain to check for the redirection. If it works properly then there is no issue in running the .htaccess file in the server. You now have to analyze the coding part from where the error exists.

How this faq is helpful:

Not at all
helpful
Not much
helpful
Some what
helpful
Very
helpful
Extremely
helpful

What could be better? (Optional)
X
  Not related to my issue
  Too complicated explanations
  Too much information
  Incorrect information
  Unclear information
  Incomplete information
  Too old information
Do you have any other feedback about this faq ?
1000

Related Tags :