Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the benefit of building a site with relative paths?

user-image
Question ajoutée par Maalik Muhamed , Deputy Mill Manager , AZANIA GROUP OF COMPANYS
Date de publication: 2014/06/28
Tomasz Modrzejewski
par Tomasz Modrzejewski , Python Developer , Freelancer

  1. The website is an indispensable basis for the functioning of the Internet.     The essence of the holding hand is the interaction with users, communications, building emotional tension of image and zapamiętywalność subconscious.     A website is nothing more than a medium working24 h/365 days. This is our international sales department spokesman, and customer service. Are you in your company are not paying attention to the customer? So why disrespect the client on the Internet? Are you being a customer of another company would like to have limited access to this company? No, so why do you do this to your customers?     Each performed by our website is implemented in terms of building a positive image of the company, distinguish it from others on the market and the user interaction and ergonomics web browsing.     We develop web solutions based on the latest trends and technologies. The Internet is not considered obsolete solutions.       For our customers, we have developed tailored to the individual needs of the method of operation. We approach each project individually. We operate based on the latest technologies to meet even the most complicated tasks.   Benefits Web site and the facts that we lose not being on the Internet: millions of potential customers cheapest on the market way to reach customers measurability, everything that happens with our website is measurable cheapest loyal and honest employee 24h/365dni • Full control of communication the ability to quickly react functioning in the social space and many other benefits which you'll be starting the adventure of Internet web sites Preparation of a website is realized on the basis of the consecutive scheme: STEP1 During the first stage we make an in-depth interview and analysis needs. Thoroughly familiarize ourselves with the subject site. Together with the client we set the functionality of the site and the way we interact with customers. For the customer, we analyze the competition. Together we make domain name registration, start the server and publish an information page regarding the work carried out. We advise on issues of coherence graphics company. STAGE2 In the second stage we focus on the visual aspect, ergonometrycznym and aesthetic. We customize the appearance of the web page to the specifics of the industry and analyze customer behavior. We create intuitive and easy-to-use menus, place the appealing and relevant themes, we select the font size of the letters, and dress the page in the appropriate color. Viewing a graphical form of the website. First, we discuss the main page then present all the pages. STEP3 Moving on to the third stage we deal with software throughout the website according to the established functions and purpose of the site. We place great emphasis on fast action service, instant loading and optimization of the page for search engines such as Google.pl. A fully functional website will be submitted for final approval of the Client. The main objective at this stage is to place the page on the Internet at the pre-selected Internet address. During the work related to software maintenance, we are in constant contact with our customer, offering the most effective solutions to individual

Afsheen Atif
par Afsheen Atif

In general, it is considered best-practice to use relative URLs, so that your website will not be bound to the base URL of where it is currently deployed. For example, it will be able to work on localhost, as well as on your public domain, without modifications.

source

Cheers!

smaa El Nagar
par smaa El Nagar , Senior .Net and SharePoint Developer , Ibtikar technologies

relative pathes is resusable and you can run the web site on whatever location or url but absolute path make it related to one domain or location

Waleed Butt
par Waleed Butt , Creative Web Developer , addictivemobility

Relative paths as explained by the rest has the benefit of porting website to different locations, and if you are version controlling my making different directories it can help at that and when the browsers looks within the server for relative paths its good optimzation technique because if a browsers encounters an absolute path it makes extra calls to the server to fetch it by looking up the location again and getting the file.

Muhammad Waqas
par Muhammad Waqas , C#/.Net Developer , Signup solution

Relative paths tell the browser where a file is located relative to the document the browser is currently viewing.  Since the paths are not based on the root directory, they are portable between different computers.

Muhammad Zeshan
par Muhammad Zeshan , Web Application Developer , Inquiron

Sometimes we need to migrate our web applications/sites from one server/domain to another server/domain. A site with absolute paths/urls would need modifications to the paths/URLs accordingly while migrating. Relative path/url would not need to modifiy anything and the website/app would work perfectly in new environment.

Rykiel Ramnath
par Rykiel Ramnath , DIGITAL SERVICE SPECIALIST , TELKOM

If you build a site with relative paths, you probably understand that the content linked to in the relative path is stored on your domain or website.

 

However, absolute paths also work in this scenario, although it is cumbersome for the web programmer/developer.

 

Absolute paths should only be used when linking to content found on a different site.

Ayushi Bansal
par Ayushi Bansal , Intern , Wipro Infotech Ltd.

Building a site with relative path is very useful as it will check the site before uploading and also it will display the page/site when we are at offline mode.

Amir Khan
par Amir Khan , LAMP/PHP Web Programmer , GTA Web Developers

1. Good practice is not to embed complete paths including http:// etc that avoids extra web server calls which can be bad for server overhead.

 

2. You can change the base URL simply by changing it in the application configuration file which allows you to redeploy the application on the same or another server with a different name.

 

3. It allows you to change environments for production, staging, testing and development: for example: http://www.abc.com, dev.abc.com, staging.abc.com etc

Utilisateur supprimé
par Utilisateur supprimé

Its make site easy to maintain , spcially in development envoirement if you made site with relative path you can move finish product without much changes to any location without any worry.

Harran Ali
par Harran Ali , Creator , GoCondor (Golang open source project)

for security reasons .

relative paths will make it  a little harder to understand your site directory structure and thats what we need when some unwanted person gets his hands on your site 

More Questions Like This