开发者

change path of drupal links & menu etc

Is there an option in Drupal to make all the URL’s that Drupal generates point to somewhere else?

For example, from path: "/" or "mydomain.com" 开发者_Python百科to "http://apps.facebook.com/myapp”, I know there is already Facebook plugin but it has a lot of bugs.


If I understand correctly, you should be able to modify the $base_path variable in your site's settings.php file.

For example, by default when Drupal creates a path to a page like 'About Us', This would then by link people to something like:

    /about-us

(which is equivalent to http://www.mydrupalsite.com/about-us)

If you change the $base_path variable in your settings.php file to, for example:

    $base_path = "http://www.myotherdrupalsite.com";

Then Drupal will render your links like, e.g. http://www.myotherdrupalsite.com/about-us

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜