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

Backbone - file-like application root

If I am serving my Backbone application from http://example.com/foo/bar.html, what should I specify the application root as? E.g.: Backbone.history.start({ pushState: true, root: '/foo/' }); vs Backbone.history.start({ pushState: true, …
Kal
  • 1,707
  • 15
  • 29
0
votes
1 answer

$dirpath changing url when called from within wordpress file

I have a slideshow on a php page that uses $folder = opendir($dirpath); to access images in a folder. When I enter the url of said php file all works well, however once I call this php from inside a wordpress page it no longer accesses the image…
wes
  • 3
  • 2
0
votes
2 answers

nodejs or python proxy lib with relative url support

I am looking for a lib that lets me roughly: connect to localhost:port, but see http://somesite.com rewrite all static assets to point to localhost:port instead of somesite.com support cookies / authentication i know that…
mkoryak
  • 57,086
  • 61
  • 201
  • 257
0
votes
0 answers

SSL with Relative Path on JSP (Basic)

How do I get SSL to work with relative paths on a JSP page. Regardless of whether I'm calling a servlet in a form or just linking to a separate page, is there a way to guarantee that the paths "/foo.do", or "/foo.jsp" will automatically go to…
oberger
  • 1,217
  • 2
  • 16
  • 31
0
votes
1 answer

Anchor to Another Page Using Relative Paths - PHP

I have an HTML page that has several anchors on it:

Anchor 1

blah blah

Anchor 2

blah blah

Anchor 3

blah blah

Then, I have a PHP array…
nicorellius
  • 3,715
  • 4
  • 48
  • 79
0
votes
1 answer

Determing if URL should have a forward slash at the end in Java

I am trying to do some web crawling and I came across an issue of when to add a slash or not. I know that some sites do have it at the end and some don't but entering the wrong one in the browser will just redirect you to the right one.…
Dan
  • 8,263
  • 16
  • 51
  • 53
0
votes
1 answer

WordPress relative links for regular non image links

Is there a way to do normal links in WordPress (not image source links) in a "relative" manner?? Im doing custom site in WP and some portions of the site, for example an image link that when clicked, leads to a specific dynamically built WordPress…
somdow
  • 6,268
  • 10
  • 40
  • 58
0
votes
1 answer

How relative link in href working?

I have a problem relating to relative links in href. To make a long story short, I think an example is the best way to get what's going on. On tinhte.vn/threads/300021/, it is a discussion forum, to go to the page 2, we click on [2]. I view source…
MQuy
  • 39
  • 4
  • 11
-1
votes
1 answer

i fail to get my css file to link it with the index file

Root file is Practise2 folder: -Resources (folder) -php_script (folder) -index.php (file) inside Resources file: -html (folder) -styles (folder) -images (folder) inside the styles folder: -login.css (file) I want to link the login.css file with…
-1
votes
2 answers

Relative URL to a sub-directory in HTML

Can we create a relative link in HTML? For example, how can I write a relative URL on this page http://www.example.com/dir/sub-dir to this sub page http://www.example.com/dir/sub-dir/sub-sub-dir Is this even possible in HTML?
abbas
  • 6,453
  • 2
  • 40
  • 36
-1
votes
1 answer

Relative link in CSS

I need help with one situation. I creat file structure : MainFolder index.html IMGfolder bg.jpg CSSfolder style.css I need link picture bg.jpg relative url in my CSS style file : background-color: url('?'); I try…
-3
votes
1 answer

Change relative url with CURL

I'm trying to scrape some websites using CURL. In order to change the relative URL's I have inserted this: $curl_scraped_page = preg_replace("//i", "", $curl_scraped_page, 1); It's working good for most websites but…
Youss
  • 4,196
  • 12
  • 55
  • 109
1 2 3
8
9