Hi everyone,

When I'm typing url for e.g. www.mydomain.com then, it is not redirecting to www.mydomain.com/index.php. It is displaying error message on browser as Server Error. 403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.

If I type direct url i.e. www.mydomain.com/index.php then, it shows website.

Kindly, help. Thanks in advance..

in order for me to help you please post your code you might have something wrong there

<?php include_once('header.php'); ?>
<div id="content_body">
<div id="img_container"></div>
<div id="top_left">
<span class="caption">Property Details</span>
<p><b>Location</b>: Jumeirah Village</p>
<p><b>Property</b>: Manhattan</p>
</div>
<div id="top_centre">
<span class="caption">Unit Details</span>
<p><b>Bedroom</b>: 1</p>
<p><b>Built up area(BUA)</b>: 965 sq.ft.</p>
<p><b>Unit view</b>: Highway</p>
</div>
<div id="top_right">
<span class="caption">Sales Details</span>
<p><b>Selling Price</b>:</p>
<span class="caption_price">AED 400,000</span>
</div>
<div id="img_line"> </div>
<div id="content_para">
<p align="justify" class="doublespace">Steal Deal in JVC, Manhattan Residency. 1BR apartment on the high floor for sale. the apartment is very spacious having the size of 965 sq ft. It has a beautiful view of the greenery part along the highway.</p>                                   
<p align="justify" class="doublespace">The Manhattan in Jumeirah Village draws inspiration from the urban residence during 1930's in New York, with about 355 elegant units, comprising studio, single bedroom, double bedrooms and triple bedroom apartments with high-end finishing, in a variety of styles.</p>                    
<p align="justify">This is a premium site easily accessible to Dubai Commercial Centers and other finest attractions. The Manhattan will live up to our corporate ethos, while also building excellence through partnerships, offering urban convenience, privacy, luxury and access to first-class road networks, amenities and planned Dubai metro.</p>
                    </div>
                </div><!-- EO <div id="content_body"> --> 
  <?php include_once('right_panel.php'); include_once('footer.php'); ?>

The code above is mentioned in index.php file

@pritaeas which settings u mean?

is your website online if yes then as pritaeas said you should have a default page specified. But if not try puting your site in a localhost webserver like wampserver

which service did you use to host the site

I'm using FTP to upload the material. Also, I don't know much about this server. Since, the details are given by client. First time I'm facing this problem.

Also, I don't know whether this sever supports .htaccess

Then you should ask the client for more information, or ask him to fix it if you don't have access.

wait letme show you how to do this as i have done it for my site

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Flash Properties</title>
<link rel="shortcut icon" href="favicon.ico" />
<link href="css/default.css" rel="stylesheet" type="text/css" /> 

<style type="text/css">
/* below property is resetting to make all browser equal */
body,div,p,h2,ul,li,span,table
{
    margin:0px;
    padding:0px;
}


body
{
    background:url(images/body_bg.jpg) repeat-x 0 0;
}

#outer
{
    /*background:url(images/bg.jpg) repeat-x 0 0;*/
    width:1000px;
    height:850px;
    margin:0 auto;
    font-family:Arial, verdana,"Time New Roman",Helvetica,sans-serif;
    /*border:dashed;*/
}

#left_shadow
{
    width:10px;
    height:850px;
    background:url(images/left-shadow.jpg) repeat-x 0 0;
    float:left;
}

#middle_body
{
    width:980px;
    height:850px;
    float:left;
}

#right_shadow
{
    width:10px;
    height:850px;
    background:url(images/right-shadow.jpg) repeat-x 0 0;
    float:right;
}
#banner
{
    width:980px;
    height:180px;
    background:url(images/banner.jpg) repeat-x 0 0;
    cursor:pointer;
}

#property_search
{
    margin:19px auto;
    width:323px;    
    height:328px;
    background:url(images/property_search.jpg) no-repeat;
}

#menus { width:980px; height:30px; margin:0 auto; font-family:Arial, verdana,"Time New Roman",Helvetica,sans-serif;/*border:dotted;*/}

#menus ul {float:left; list-style:none; text-align:right; display:inline; margin:6.5px 55px; /*border:dashed;*/}

#menus ul li {float:left; display:inline; cursor:pointer; margin:0 22px; font-size:15px; font-weight:600; color:#ffffff; /*border:dotted;*/}

#menus ul li a {text-decoration:none; display:block; text-transform:uppercase; font-weight:600; color:#ffffff;}

#rera_container
{
    margin-top: -31px;
    margin-left: 810px;
    width:170px;
    height:29px;
    background:url(images/rera_no_updated.jpg)  no-repeat;
    float:left;
    /*border:dashed;*/
}

#right_panel{width:352px;height:640px;float:right;/*border:dashed;*/}
#left_panel
{
    float:left;
    width:622px;
    height:640px;
    /*border:dashed;*/
}
#content{width:980px; height:640px; background-color:#ffffff;}
#right_panel_caption
{
    margin:0 auto;
    /*border:dashed;*/
    padding-left:13px;
}
h1
{
    color:#e11e25;
    font-size:17px;
    font-weight:600;
    height:6px;
    font-family:Arial, verdana,"Time New Roman",Helvetica,sans-serif;
}

.caption
{
    color:#e11e25;
    font-size:14px;
    font-weight:600;
    height:6px;
    font-family:Arial, verdana,"Time New Roman",Helvetica,sans-serif;
}

#header_img{margin-right:25px; float:right; margin-top:-6px; width:206px; height:6px; background:url(images/header_line.jpg) no-repeat bottom;}

#services_div
{
    margin:17px auto;
    width:322px;
    height:227px;
    /*border:dotted;*/
    background:url(images/services.jpg) no-repeat;
}

#content_body
{
    margin:40px auto;
    width:570px;
    height:568px;
    /*border:dotted;*/
    font-size:13px; 
    border: 1px solid #cbcbcb;
}

#img_container
{
    width:570px;
    height:290px;
    margin:0 auto;
    background:url(images/img_container.jpg) no-repeat;
}

#top_left
{
    margin:0 auto;
    padding-top:10px;
    padding-left:10px;
    width:178px;
    height:70px;
    float:left;
    /*border:dashed;*/
}

#top_centre
{
    margin:0 auto;
    padding-top:10px;
    width:190px;
    height:70px;
    float:left;
    /*border:dashed;*/  
}

#top_right
{
    margin:0 auto;
    padding-top:10px;
    width:180px;
    height:70px;
    float:right;
    /*border:dashed;*/
}

.caption_price
{

    color:#d90e15;
    font-size:19px;
    font-weight:700;
    height:6px;
    font-family:Arial, verdana,"Time New Roman",Helvetica,sans-serif;
}

#img_line
{
    margin:80px auto;
    width:554px;
    height:10px;
    background:url(images/img_line.jpg) no-repeat;
    /*border:dashed;*/
}

#content_para
{
    margin:-70px auto;
    margin-left:8px;
    margin-right:15px;
    width:550px;
    height:174px;
    line-height:120%;
    /*border:dashed;*/
}

.doublespace
{
    margin-bottom:8px;
}

#footer_container
{
    margin:0 auto;
    width:980px;
    height:144px;   
    font-family:Arial, verdana,"Time New Roman",Helvetica,sans-serif;
    /*border:dashed;*/
}

#footer_first
{
    margin:0 auto;
    padding:20px 0 0 25px;
    width:65px;
    height:80px;
    float:left;
    /*border:dashed;*/
}

#footer_second
{
    margin:0 auto;
    padding:20px 0 0 11px;
    width:150px;
    height:80px;
    float:left;
    /*border:dashed;*/
}

#footer_third
{
    margin:0 auto;
    padding:20px 0 0 19px;
    width:140px;
    height:80px;
    float:left;
    /*border:dashed;*/
}

#footer_fourth
{
    margin:0 auto;
    padding:20px 0 0 5px;
    width:130px;
    height:80px;
    float:left;
    /*border:dashed;*/
}

#footer_fifth
{
    margin:0 auto;
    padding:20px 0 0 5px;
    width:100px;
    height:80px;
    float:left;
    /*border:dashed;*/
}

#footer_last
{
    margin:0 auto;
    width:320px;
    height:140px;
    float:right;
    background:url(images/footer_watermark.jpg) repeat-x 0 0;
    background-color:#515151;
    /*border:dashed;*/
}

#social_netoworks_icon
{
    margin:46px auto;
    width:290px;
    height:70px;
    /*background:url(images/social_network.png) no-repeat 0 0;*/
    /*border:dashed;*/
}

.caption_footer
{
    color:#c8c8c8;
    font-size:16px;
    font-weight:600;
    height:6px;
    font-family:Arial, verdana,"Time New Roman",Helvetica,sans-serif;
}

.text_footer
{
    color:#c8c8c8;
    font-size:15px;
    font-weight:400;
    height:6px;
    font-family:Arial, verdana,"Time New Roman",Helvetica,sans-serif;
}

.clearfix {clear:both;}

#copywrite_container
{
    margin:-18px 0 0 24px;
    width:300px;
    height:30px;    
    /*border:dashed;*/
}

#copywrite_container p {color:#878686; font-size:12px}

a {
    color:#c8c8c8;
    text-decoration:none;
    outline:none
}

</style>

<script type="text/javascript" src="<?php echo $siteinfo['root']; ?>js/jquery-1.4.2.min.js"></script>

</head>

<body>
<div id="outer">
<div id="left_shadow">
</div>
<div id="middle_body">
    <div id="banner">

    </div>
    <div id="menus">

        <ul id="nav">
            <li id="home"><a href="#">HOME</a></li>
            <li id="buy"><a href="#">BUY</a></li>
            <li id="sell"><a href="#">SELL</a></li>
            <li id="rent"><a href="#">RENT</a></li>
            <li id="projects"><a href="#">PROJECTS</a></li>
            <li id="about_us"><a href="#">ABOUT US</a></li>
            <li id="contact_us"><a href="#">CONTACT US</a></li>
          </ul>

          <div id="rera_container"></div>

    </div>

    <div id="content">
        <div id="left_panel">
            <div id="content_body">
                <div id="img_container"></div>
                <div id="top_left">
                    <span class="caption">Property Details</span>
                    <p><b>Location</b>: Jumeirah Village</p>
                    <p><b>Property</b>: Manhattan</p>
                </div>
                <div id="top_centre">
                    <span class="caption">Unit Details</span>
                    <p><b>Bedroom</b>: 1</p>
                    <p><b>Built up area(BUA)</b>: 965 sq.ft.</p>
                    <p><b>Unit view</b>: Highway</p>
                </div>
                <div id="top_right">
                    <span class="caption">Sales Details</span>
                    <p><b>Selling Price</b>:</p>
                    <span class="caption_price">AED 400,000</span>
                </div>
                <div id="img_line"> </div>
                <div id="content_para">
                <p align="justify" class="doublespace">Steal Deal in JVC, Manhattan Residency. 1BR apartment on the high floor for sale. the apartment is very spacious having the size of 965 sq ft. It has a beautiful view of the greenery part along the highway.</p>

               <p align="justify" class="doublespace">The Manhattan in Jumeirah Village draws inspiration from the urban residence during 1930's in New York, with about 355 elegant units, comprising studio, single bedroom, double bedrooms and triple bedroom apartments with high-end finishing, in a variety of styles.</p>

                <p align="justify">This is a premium site easily accessible to Dubai Commercial Centers and other finest attractions. The Manhattan will live up to our corporate ethos, while also building excellence through partnerships, offering urban convenience, privacy, luxury and access to first-class road networks, amenities and planned Dubai metro.</p>
                </div>
            </div>

        </div>
        <div id="right_panel">
            <div id="property_search">            
            </div>
            <div id="right_panel_caption"><h1> Our Services</h1><div id="header_img"></div></div>
            <div id="services_div">            
            </div>
      </div>

    </div>   

</div>

<div id="right_shadow">
</div>


</div>


<div id="footer_container">
    <div id="footer_first"><span class="caption_footer"><a href="#">Home</a></span></div>
    <div id="footer_second"><span class="caption_footer">Tenance Guide:</span>
    <img src="images/line_updated.jpg" /><br/>
    <p><span class="text_footer">Search Properties</span></p>
<p><span class="text_footer">Guidelines</span></p>
<p><span class="text_footer">FAQ’s</span></p>    
    </div>
    <div id="footer_third"><span class="caption_footer">Seller's Guide:</span>
        <img src="images/line_updated.jpg" /><br/>
        <p><span class="text_footer">Search Properties</span></p>
        <p><span class="text_footer">Guidelines</span></p>
        <p><span class="text_footer">FAQ’s</span></p>
    </div>
    <div id="footer_fourth"><span class="caption_footer">Browse:</span>
        <img src="images/line_updated.jpg" /><br/>
        <p><span class="text_footer">Fact Sheet</span></p>
        <p><span class="text_footer">Make an Enquiry</span></p>
        <p><span class="text_footer">Property Listings</span></p>
    </div>
    <div id="footer_fifth"><span class="caption_footer"><a href="#">Contact Us</a></span></div>
    <div id="footer_last">
        <div id="social_netoworks_icon"><img src="images/social_network.png" width="270" height="67" border="0" alt="social_network_img" usemap="#social_network_map" /></div>
    </div>
    <div class="clearfix"></div>
    <div id="copywrite_container"><p>&copy; 2012 Flash Properties. All rights reserved.</p></div>

</div>

<map name="social_network_map" id="social_network_map">
<area shape="rect" coords="0,18,85,37" href="https://www.facebook.com/FlashProperties?fref=ts" target="_blank"/>
<area shape="rect" coords="32,18,85,37" href="https://www.facebook.com/FlashProperties?fref=ts" target="_blank"/>
<area shape="rect" coords="138,15,610,40" href="http://www.linkedin.com/company/flash-properties" target="_blank"/>
<area shape="rect" coords="170,15,610,40" href="http://www.linkedin.com/company/flash-properties" target="_blank"/>

<area shape="rect" coords="0,50,85,37" href="http://twitter.com/FlashP_DXB" target="_blank" />
<area shape="rect" coords="32,50,85,37" href="http://twitter.com/FlashP_DXB" target="_blank"/>
<area shape="rect" coords="138,50,610,40" href="#" />
<area shape="rect" coords="170,15,610,40" href="#" />
</map>
</body>
</html>

FYI, I didn't put any .htaccess file.
Kindly, help

which webclient are you using to host the site

Looks like Windows hosting. You'll have to ask your client to change some settings in IIS. You can't do it yourself unless you have access to IIS on the server.

I think its windows

@pritaeas I've cpanel access. Can I do from my end. My client doesn't have technical knowledge. Can u plz guide me?

yap its windows and ya you need access to the IIS pannel can you??

login to your pannel

Is IIS Panel and Cpanel are same? If yes, then I'm logged in to cpanel.

If it is cPanel, check the documentation. Look for changing the default document.

Yeah, I added index.php in default documents combo and clicked on 'Update' button. Hope, it should work. But, it takes time for updating.

Thx Pritaeas and Pranay1995 for helping out. The issue is solved. Thanks a lot.

cheers mate my pleasure

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.