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.
I can modify the php to do stuff I want, but I can't figure out what I'm supposed to do with my custom short domain. I've set the domain's dns entries to point to my server, but I'm unclear on what I'm supposed to do next. I'm on shared hosting (with a cPanel) if that makes any difference. Any feedback would be greatly appreciated.
Comments
Comment #1
__mark CreditAttribution: __mark commentedmore info: I'm getting 500 and 404 errors, with all configurations from what I've tried: redirecting to primary domain, with and without these .htaccess rules:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Comment #2
__mark CreditAttribution: __mark commentedAnswer is to set vhost up to have short url to point to primary url.
Comment #4
__mark CreditAttribution: __mark commentedI'm still lost on this one. Can anyone post an example vhost entry?
Comment #5
__mark CreditAttribution: __mark commentedComment #6
__mark CreditAttribution: __mark commentedI'm beginning to wonder, does this module only work by the use of a 301 redirect chain?
So far, the only way I've been able to get short-url.com to point to normal-url.com is with a 301 redirect (either at the server level, or otherwise). And then the module has to 301 redirect to the long url. As far as I know, redirect chains are quite bad for seo.
Is this the way this module is supposed to work?
Comment #7
magnestyuk CreditAttribution: magnestyuk commentedArturoB, did you come up with an answer? I purchased a short domain name, but I'm not sure what needs to be set up and where.
E.g. does it have to be a parked domain in cpanel?
Do I have to create a CNAME record for it?
Do I have to redirect the short domain to the long domain?
Do I need to modify Drupal's .htaccess to make new rewrite rules?
Do I have to create a short_domain.com folder within the sites directory with its own settings.php?
I tried many combinations but it does not work for me.
Anyone out there? Thanks.