SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2012
    2 Post(s)
    0 Thread(s)

    Rebuilding an old site: Any tips for managing relative URL's?

    Rebuilding my 7 year old website using a completely new program (Notepad++)

    I need to keep the old page URL's exactly the same because they rank really well. I don't want to gamble with redirects.

    Using Twitter Bootstrap to do a responsive design. Works great on my PC but when I upload a sample page to the actual site it can't find all the CSS and Image and JS directories it needs.

    I can see that it's because the standard Twitter Bootstrap directories for things like the CSS are at different levels from where they got uploaded to the website.

    So my question is: How to create paths using things like Relative URL's and maybe a Base URL so that what I am designing on the PC also works on the web when I upload it?

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    463 Post(s)
    8 Thread(s)
    Generally, the best thing to do is set up a local server environment (using MAMP on a Mac or XAMPP on a PC) so that your links can be the same locally as remotely. Then you can use root relative links in both scenarios (such as src="/images/image.gif").

    But you can use the same relative links in both envorionments, even without a local server environment. Something like src="../../images/image.gif" will work the same locally and remotely.

  3. #3
    SitePoint Member
    Join Date
    Nov 2012
    0 Post(s)
    0 Thread(s)
    you are right xampp virtual server environment can solve the problem; being using it from over three years.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts