Redirect Loop in Cpanel servers

It seems the issue is in the .htaccess file creation:

it looks like this:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^.*?$ "http\:\/\/domain\.com\/subdir" [R=301,L]

instead of this:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^/?$ "http\:\/\/domain\.com\/subdir" [R=301,L]
About these ads
About

anees

Posted in Cpanel, Issues
One comment on “Redirect Loop in Cpanel servers
  1. Hi there, I desire to subscribe for this web site to get newest updates, therefore where can i
    do it please assist.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog Stats
  • 120,770 hits
Follow

Get every new post delivered to your Inbox.

Join 211 other followers

%d bloggers like this: