Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I don't know how to rename the default contact form. BUT, if you make a page called "feedback" and just put the form code into it with full HTML input type, it will work. You can get the form code by going to your contact page, viewing source, and copy everything from form to /form. I don't know if this is the best way to do it, but it works.
Here is a form that you can use, with all formatting removed (DIVs, etc).
However, I have also enabled the Contact Forms module that enables the personal email forms.
I would not want to add an URL alias for each of my contacts.
Hmm...
This is the current mod_rewrite from my Drupal 6 site.
Code:
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Is it possible to modify it in a way that it would redirect for example:
For automatic URL aliasing involving many users, probably your best bet is the pathauto module together with the token module.
Using apache rewrites is not the same. They would visibly change the first URL to the second, but the second URL should already exist in Drupal. With Drupal's URL aliasing the second URL is created.
Comments
100%
I don't know how to rename the default contact form. BUT, if you make a page called "feedback" and just put the form code into it with full HTML input type, it will work. You can get the form code by going to your contact page, viewing source, and copy everything from form to /form. I don't know if this is the best way to do it, but it works.
Here is a form that you can use, with all formatting removed (DIVs, etc).
Just create a URL Alias of
Just create a URL Alias of "feedback" to "contact". The Drupal Menu (and URL) system will take care of the rest.
- Corey
works just right
this is the right way going about the problem
Enable the path module
Enable the path module (included in Drupal) and you will get an "URL aliases" option in your admin menu.
perhaps some sort of rewrite exception?
Yes, this works for core contact form.
However, I have also enabled the Contact Forms module that enables the personal email forms.
I would not want to add an URL alias for each of my contacts.
Hmm...
This is the current mod_rewrite from my Drupal 6 site.
Code:
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Is it possible to modify it in a way that it would redirect for example:
www.example.com/mail/john doe
to
www.example.com/contact/john doe
Thanks,
For automatic URL aliasing
For automatic URL aliasing involving many users, probably your best bet is the pathauto module together with the token module.
Using apache rewrites is not the same. They would visibly change the first URL to the second, but the second URL should already exist in Drupal. With Drupal's URL aliasing the second URL is created.