Posted by: mani7able | February 20, 2012

Day-6 Absolute URLs


This very simple module causes all of your site’s internal URLs to be rendered as absolute URLs (e.g., “http://mysite/node/whatever”) instead of relative URLs (“/node/whatever”). Some people think this is useful for SEO.

All this does is modify the global base_path variable in an init() hook so that all calls to base_path() will get an absolute URL. So, of course, if you or your module/theme don’t use base_path(), you won’t get the benefit of this.



Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: