Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7875797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:03:39+00:00 2026-06-03T03:03:39+00:00

Here is my root folder : index.php stylesheets(folder) —>main.css includes(folder) —>header.php folder1 (folder) —>page1.php

  • 0

Here is my root folder :

index.php
stylesheets(folder) --->main.css
includes(folder)    --->header.php
folder1  (folder)           --->page1.php

Here is link part of “header.php” (from includes folder) :

<link href="stylesheets/main.css" rel="stylesheet" type="text/css" />

Here is a part of index.php :

<?php include "includes/header.php"; ?>

Here is a part of page1.php (from folder1):

<?php include "../includes/header.php"; ?>

Problem is, when I open index.php everything is normal. As for /folder1/page1.php, it doesn’t see styles but see content of header.php. That is to say, it doesn’t bring main.css. Most probably, because of link href="stylesheets/main.css" rel="stylesheet" type="text/css" Any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:03:39+00:00Added an answer on June 3, 2026 at 3:03 am

    Because you access files from multiple levels, you should use an absolute path.

    So either href="http://domain.com/stylesheets/main.css" or href="/stylesheets/main.css"

    But this only works (the 2nd one, and the one I recommend) when you have it on top level on your domain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the scenario: There is a index.php file in root folder some files
I have a site with index.php in the root folder, images in /img ,
I've setup a dbconn.php file in the includes folder outside of the document root.
I have never before rewritten a URL except for removing the index.php part of
my .htaccess in the root folder includes the following lines : Options +FollowSymlinks RewriteEngine
I often see people asking XML/XSLT related questions here that root in the inability
I have a menu written here which contains root elements and secondary elements. I
Here is the error when gem install bundler: root@ubuntu:/home/dtt# cd /vol/www/emclab/current root@ubuntu:/vol/www/emclab/current# gem install
here is the xml data : <root> <recommendedMaterials> <value label=Aluminium data=0 /> <value label=Iron
Here's a question that's been haunting me for a year now. The root question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.