base-url

Debugging the base URL element with Firebug

I'm adding the base URL tag to the document head using JS, so the relative links on the page work. But it does not take effect, and Firebug (debugging addon for Firefox) shows the <BASE /> element greyed out.. why? Does this mean Firefox cannot understand it or the syntax is incorrect? ...

Zend_Form set action - Can it work w/ Zend application built in subdirectory?

My application is being built in a subdirectory of my local server, that looks something like this: http://localhost/application/ The problem is that when I set the form action to "/form/save", the form routes to "localhost/form/save", which doesn't exist. If I set the form action to "/application/form/save", I get an error, becaus...

Getting the baseurl value into my controllers

Am creating an action helper that will require the return value of the Zend_View_Helper_BaseUrl How do I go about that? ...

Can I get a "base URL" in Wordpress within a template file?

Usually in my PHP apps I have a base URL setup so I can do things like this <a href="<?php echo BASE_URL; ?>tom/jones">Tom</a> Then I can move my site from development to production and swap it easily and have the change go site wide (and it seems more reliable than <base href="" />. I'm doing up a Wordpress theme, and I am wondering...

How to create a fully qualified hyperlink to a resource dynamically?

In ASP.NET I'd like to create a link which points to a specific Uri and send this link in an email to a user, for instance something like http://www.BlaBla.com/CustomerPortal/Order/9876. I can create the second part of the Uri /CustomerPortal/Order/9876 dynamically in code-behind. My question is: How can I create the base Uri http://www....

Rewrite base rule- php

Internal URL: example.com/abc/xyz/rule.php?price=1&pass=2 External URL: example.com/abc/xyz/rule/1/2 But the css, js files are not coming into effect in the external URL. My .htaccess file: RewriteEngine On RewriteBase /example.com/abc/ RewriteRule ^rule/([0-9]+)/([0-9]+)/?$ rule.php?price=$1&pass=$2 ...

How to get Kohana base_url in template

In Kohana 3 bootstrap.php one can define base_url: Kohana::init(array( 'base_url' => '/foo/', )); This usually means also moving the /js/, /css/ and other media to that base dir like /foo/js/, /foo/css/. My question is not to discuss good or bad of such. Is there a built-in way in Kohana to access the base_url from a template (...

base_url Link Issue

I'm using following code: $config['base_url'] = "http://www.aaa.com/"; Also Im using Flash navigation: on(release) { getURL("http://www.aaa.com/xxx/index"); } The Problem is When I give url as http://aaa.com in address bar Flash navigation link is not working. If i give link from http://www.aaa.com its work perfectly. Can anyone s...