I have a need to redirect fully qualified URL's, for example:
http://domain.com/myview should be redirected, while
http://*.domain.com/myview should NOT be redirected.
Is that possible with path_redirect? I guess I could do
that in httpd.conf, but with path_redirect configuration
maintenance would be much easier.

Comments

greggles’s picture

Does *.example.com resolve to the same drupal site as example.com?

That's not a very common setup. I don't think this is possible within path redirect today so either you should do what you need in your htaccess or change this to a feature request.

skizzo’s picture

Category: support » feature

Yes: example.com, one.example.com and two.example.com all resolve to the same drupal installation. It is not traditional multisite, as I am doing it with Domain Access. With this new module it would be really nice if Path Redirect could support independent redirections. I believe this will become a common requirement, so I am changing this into Feature Request. Thank you.

skizzo’s picture

maybe it could be something along these lines:

1) From: path [all URL with that path will be redirected]
2) From: http://example.com/path [the specified URL will be redirected]
3) From: http://one.example.com/path [the specified URL will be redirected]
4) From: http://*.example.com/path [will redirect all subdomains of example.com, for wildcard DNS]

skizzo’s picture

I found a solution to the specific problem, as
described in http://drupal.org/node/224228
I am not closing the issue, as this may be
better solution on its own. Thank you.

HorsePunchKid’s picture

Status: Active » Closed (won't fix)

This sounds like it's outside the purview of Path Redirect, since all we're dealing with is the path, that is, the part of the URL after the hostname (the url-path described in the RFC). However, this is an easy task for mod_rewrite, which has lots of features I don't expect Path Redirect to ever duplicate.