Redirection does not work

Status
Not open for further replies.

Mazhar

Member
Messages
42
Reaction score
0
Points
6
In cPanel, I went to "Redirects" option, and set up: theislamsite.com > theislamsite.com/muslims, nothing happens! It still goes to the main domain. What's the problem?
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Is there a .htaccess file?
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
It appears that cPanel did not set up the redirection properly, so you'll have to do it manually.

Your .htaccess file should look like the following (uncomment -- aka remove the "#" from the beginning -- of the redirect you want. Do not uncomment both):
Code:
## Rewrite requests from theislamsite.com > theislamsite.com/muslims
RewriteEngine On

## If this is an addon domain or otherwise NOT in your web root,
## change the RewriteBase below to point to the right directory
RewriteBase /

## If you want the redirect to be invisible
## (aka the content loads but the browser still shows just theislamsite.com),
## uncomment the following line
#RewriteRule ^/*$ /muslims [L,QSA]

## If you want the redirect to be visible
## (aka the browser is redirected to the site theislamsite.com/muslims),
## uncomment the following line
#RewriteRule ^/*$ http://theislamsite.com/muslims [R=301,L,QSA]
 
Status
Not open for further replies.
Top