Hello

I've just joined the Drupal community and I've been studying Drupal during the last few days. I've ran into some problems with the post installation links but I've solved that problem.

Reading the beginners cookbook here I found out that you can link to a page using href="/alias" . The problem is that using the leading / gives a broken url into http://localhost/alias.

My Drupal site is in http://localhost/drupal_testing. Without the leading / it work fine targeting http://localhost/drupal_testing/alias.

If I change the base_url in settings.php to

$base_url = 'http://localhost/drupal_testing'; // NO trailing slash!

there's no change. I have enabled Clean URLs!

My document root in apache httpd.conf is:


Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

Relevant Drupal's .htacces
RewriteEngine on
RewriteBase /drupal_testing
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Is there a problem with my config files?

Is it correct to use /alias or just alias to link to a aliased page?

Comments

jnvsor’s picture

just alias...

but you can do aliases/alias/myalias/aliases if you want...

Tim99’s picture

I don't really understand this... I have this url: http://www.mypage.com/tipping and I want to create an alias http://www.mypage.com/euro that simply leads to the first page. Anyone an idea to solve this?

silverwing’s picture

admin/build/path/ then add alias

~silverwing

_____________________________________________
Land of Midnight | MisguidedThoughts | showcaseCMS

Tim99’s picture

admin/build leads to the general admin menu for menu, blocks, etc. but admin/build/path leads to ...nothing. Any module needed? I'm Using Drupal 5.

silverwing’s picture

it's the path.module that's part of core. Make sure that it's enabled and that clean urls are working on your site.
~silverwing

_____________________________________________
Land of Midnight | MisguidedThoughts | showcaseCMS