The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

redirect domain problem?

Discussion in 'Database Discussions' started by greekmag, Jul 21, 2009.

  1. greekmag

    greekmag Registered

    Joined:
    Jul 21, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi, iam new user of cPanel and i realy want your help.
    Before a few weeks my cpanel reseller update some functions on cPanel like php , apache , and mysql database. After those updates i cant make a redirection of my general site apple-mag.gr/index.php to apple-mag.gr/site/index.html.
    I don't know how can i fix it.
    Please help me

    My cpanel version are this


    Email Accounts
    1/∞

    Subdomains
    0/∞

    Parked Domains
    0/∞

    Addon Domains
    0/∞

    Ftp Accounts
    0/∞

    SQL Databases
    1/∞

    Mailing Lists
    0/∞

    Server Name server

    cPanel Version 11.24.4-RELEASE

    cPanel Build 36167

    Theme x3

    Apache version 2.2.11 (Unix)

    PHP version 5.2.9

    MySQL version 5.0.77-community

    Architecture i686

    Operating system Linux

    Shared Ip Address 209.172.35.105

    Path to sendmail /usr/sbin/sendmail

    Path to PERL /usr/bin/perl

    Kernel version 2.6.18-92.1.10.el5

    cPanel Pro 1.0 (RC1)

    Thank you for your time and iam deeply sorry for my english.

    :)
     
    #1 greekmag, Jul 21, 2009
    Last edited by a moderator: Jul 21, 2009
  2. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    Add the following lines inside the .htaccess file of the domain.

    Code:
    Options +FollowSymlinks
    RewriteEngine on
    Redirect /index.php /site/index.html
    
     
  3. Janak

    Janak Well-Known Member

    Joined:
    Jul 18, 2009
    Messages:
    71
    Likes Received:
    1
    Trophy Points:
    6
    For this Apache module mod_rewrite should be enabled.
     
  4. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    On a cPanel server mod_rewrite should be enabled by default.
     
  5. greekmag

    greekmag Registered

    Joined:
    Jul 21, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    redirect domain problems

    David510 my friend thank you very much for your response .
    I have found it the file htaccess.txt but its really mess because is has inside it many lines and i dont understand in witch line should i write this?

    Options +FollowSymlinks
    RewriteEngine on
    Redirect /index.php /site/index.html

    Iam really sorry but i'am new into cPanel .
    Thank you for your time and iam really sorry for my english i now it's not so good.
    :cool:
     
  6. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    No need to edit the file .htaccess.txt. Make a new file named .htaccess and enter the text I gave.
     
  7. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Solution

    As you mentioned you are new in cPanel hosting then I would like to recommend you follow the following steps

    1) Login into your cPanel

    2) Select FileManager feature

    3) Select public_html directory

    4) And check if you have any file with the name ".htaccess" if no..then create new file with the name .htaccess and put following code in .htaccess file and save it.

    I hope it will sort out your issue..
     
Loading...

Share This Page