Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By delineas on
Hi!
I want to change the default URL of the Gallery (gallery.menalto.com) embedded in Drupal.
Default is: www.example.com/?q=gallery (or www.example.com/gallery with rewrite)
I want: www.example.com/?q=photos
But i don´t use the 'alias url'. I want a completly rewriting of the URL inside all Gallery embedded (example for an item: http://www.example.com/?q=photos&g2_itemId=226)
Thanks in advance.
Sorry for my bad English, please :-)
Comments
Possibly change the directory?
You could try changing the module directory to /photos... I don't know if that would work. Another possibility is changing the URL rewrite rule to put the /photos in, but those rules make my head spin so I can't guarantee that, either.
Sorry for the vague post... I didn't see a response so I thought I'd take stab at it.
Michelle
thanks
Thanks MichelleC, but the solution of this problem isn`t easy
I try to modify the gallery.module file to create la url /?q=photos (o similar, but in spanish: /?q=galeria)
Solved
Here:
Directory settings > Uncheck 'Autodetect Settings'
Directory settings > Embed URI (Manually entered value): /?q=photos (/photos if clean URL is on)
I recommend firstly don´t write the Directory Settings manually (checked 'Autodetect Settings') for more control of the correct URL.
Thanks