Questions tagged [relative-url]

A URL that is relative to another URL.

For example "image/logo.gif" is a relative URL, which full path can only be resolved by taking into account its parent URL. For example if a document is located at http://example.com/test, the full URL of that image would be http://example.com/test/image/logo.gif.

132 questions
0
votes
1 answer

WAMP relative urls looking in subfolders, virtual hosts setup issue?

first post on stackoverflow! Been at this for hours and can't figure it out. Wamp is installed to C:\wamp, website is in C:\wamp\www\groovysite.net and displays in my browser at localhost/groovysite.net. There is a subfolder…
0
votes
0 answers

apache is not converting relative url to absolue url when its rendered on clientbrowser

my problem is "apache is not converting relative url to absolue url when its rendered on clientbrowser" i posted here the code that's on localhost and the html code rendered on clients machine. the problem is apache is not doing ANYTHING to th…
0
votes
2 answers

What is the safest way to convert scraped URLs to real URLs?

I scrape a website and find these links on a page: index.html bla.html /index.html A.com/test.html http://wwww.B.com/bla.html If I know the current page is www.A.com/some/path, how can I convert these links into "real Urls" effectively. So, in each…
rockstardev
  • 13,479
  • 39
  • 164
  • 296
0
votes
1 answer

How to give file path in Eclipse

I am starting a project on Eclipse and I am facing a problem while I am trying to link external CSS files to my index.html file. This is my file structure in Eclipse. - MyProject - WebContent - META-INF - WEB-INF - css - js -…
vigamage
  • 1,975
  • 7
  • 48
  • 74
0
votes
2 answers

Css relative url images not appearing

I have a problem with my icons "not showing up" on a web page, These icons are stored in the fonts folder respectively. Below contains the snippet of my styles.css styles.css @font-face { font-family: 'FontAwesome'; src:…
Lawrence Wong
  • 1,129
  • 4
  • 24
  • 40
0
votes
3 answers

Relative URLS across different sub folders

Looking for a way of allowing my links and include URLs etc to work on my local machine correctly as well as on my live site. I have for example a common.php file which contains my DB connection. I also have a init.php file which is included on…
Lovelock
  • 7,689
  • 19
  • 86
  • 186
0
votes
1 answer

php parse relative url strings into one array/object

What is the best solution to split these relative…
h0n24
  • 69
  • 2
  • 8
0
votes
1 answer

Wikipedia API - Relative URLs

I am using the Wikipedia API to get information and display it in my web application. I use a URL like the one below to access the API with an AJAX request in my JavaScript. …
0
votes
1 answer

img tag src:different behavior between wamp and live server

I am building a joomla website on a live server and had to download the whole thing locally to work while without internet connection. I am facing the following problem : does appear normally…
krasatos
  • 1,177
  • 3
  • 13
  • 26
0
votes
1 answer

ASP.NET relative url changes after first login and logout

In my ASP.NET MVC 4 app that was integrated with an exiting ASP.NET 4 Webforms app, the home page is Default.aspx that has a relative link as: Click here to login. When I click on the link, it correctly opens…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
2 answers

Eleminating base_url() in every view for CodeIgniter

I am using CodeIgniter for my web app and i want to avoid on keep using base_url() function in all my urls in the views. Now this code is what i want : Click me to create user instead of
Bogz
  • 565
  • 1
  • 10
  • 30
0
votes
1 answer

Which RFC document could I use for relative URL conflict?

First of all, I saw several question related RFC in SO, but if this question not belong to here, instead downvoting it, please moderate/flag/move it to other stack site. (Thanks!) I'm having a very long-term issue with an application (my…
Leandro Bardelli
  • 10,561
  • 15
  • 79
  • 116
0
votes
1 answer

PHP - Calling Relative URL within = 'xx' apostrophe's

I'm trying to insert a relative URL in the code below before "/images" in $thumb_directory and $orig_directory however I'm not sure how to do so within 'apostrophe's'. Also, this is a WordPress website, so if anyone knows how to call the function …
Brian
  • 3,920
  • 12
  • 55
  • 100
0
votes
1 answer

Make relative url get request with HTTP_Request2

On the client side I have a get request called by $.get with jQuery "modify_user.php?uid=SomeUserId" with this XMLHttpRequest, I get some userID and load the form. The problem is that in the client side I do not have my user id, in case I want to…
Gonzalo.-
  • 12,512
  • 5
  • 50
  • 82
0
votes
0 answers

../ in relative URL not behaving as expected

Almost all the documentation I can find tells me that using "../" in relative URLs goes up one level from the current directory. So if in the file at "html/testing/new_version/admin/login.php" I use the following relative URL "../images/fail.gif"…
Lee Blake
  • 341
  • 1
  • 2
  • 15
1 2 3
8
9