Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > Suggestions > Topic : Easily Configure a Different Document Root



Normal Mode | Print  

Easily Configure a Different Document Root
AlanJames1987
Group: Member
Post Group: Newbie
Posts: 4
Status:
I don't believe that a server should make me conform my code to it. The server should conform to my code through configuration files.

Also, if I am using a shared PHP head with relative paths my program requires additional programming logic to make the paths work. A css file located in /css/ is linked differently from /page/ and /page/subpage/ with relative paths, while it is always the same with absolute paths.

from /page/
css = ../css/style.css

from /page/subpage
css = ../../css/style.css

This is the same for images, videos, anchor tags, javascript and any other asset you could load, several of which are linked through a single head file.
IP: --   


Threads
 AlanJames1987   Easily Configure a Different Document Root (9 Replies, Read 183045 times)
    |--  tidus   Hi, Is it...   on April 18, 2013, 6:55 am
    |--  AlanJames1987   We link our...   on April 18, 2013, 9:21 pm
    |--  tidus   Hi, Relative Path...   on April 19, 2013, 12:34 pm
    |--  AlanJames1987   I don't believe...   on April 19, 2013, 10:58 pm
    |--  tidus   Hi, Okay. We...   on April 22, 2013, 12:20 pm
    |--  AlanJames1987   Awesome. I am...   on April 23, 2013, 9:39 pm
    |--  grumpy_robot   Did this by...   on May 14, 2014, 4:35 pm
    |--  AlexG2   Any news on...   on November 17, 2015, 2:08 pm
    |--  nickwuk   Any news on...   on June 28, 2017, 10:40 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 30, 2025, 3:50 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.425