Hi,
I would like to point "https://my-domain.org/" to the list of mailing-lists of this domain. How should I setup my Apache configuration and/or the urlpatterns please?
With my actual configuration, the above URL is always rewritten to https://my-domain.org/postorius/lists/
These are my urlpatterns:
urlpatterns = [ url(r'^$', RedirectView.as_view( url=reverse_lazy('list_index'), permanent=True)), url(r'^postorius/', include('postorius.urls')), url(r'^archive/', include('hyperkitty.urls')), url(r'', include('django_mailman3.urls')), url(r'^accounts/', include('allauth.urls')), url(r'^admin/', include(admin.site.urls)), ]
TIA for any help,
Peter
On Sun, Jan 28, 2018, at 12:24 PM, Peter Münster wrote:
Hi,
I would like to point "https://my-domain.org/" to the list of mailing-lists of this domain. How should I setup my Apache configuration and/or the urlpatterns please?
With my actual configuration, the above URL is always rewritten to https://my-domain.org/postorius/lists/
These are my urlpatterns:
urlpatterns = [ url(r'^$', RedirectView.as_view( url=reverse_lazy('list_index'), permanent=True)),
^ This is responsible for re-writing your URL to `/postorius/lists/` as Redirect from `/`. This patch should do what you want: ``` index a5ea108..bff54f3 100644 --- a/example_project/urls.py +++ b/example_project/urls.py @@ -25,11 +25,10 @@ try: except ImportError: from django.urls import reverse_lazy from django.views.generic import RedirectView +from postorius.views.list import list_index urlpatterns = [ - url(r'^$', RedirectView.as_view( - url=reverse_lazy('list_index'), - permanent=True)), + url(r'^$', list_index), url(r'^postorius/', include('postorius.urls')), ``` Just as an FYI, my browser would always re-direct me to /posotrius/lists, even after I applied this patch, not sure if it was some sort of caching or something else. I tried it from an incognito-mode and it seemed to work. -- Abhilash Raj maxking@asynchronous.in
On Sun, Jan 28, 2018, at 12:24 PM, Peter Münster wrote:
This patch should do what you want:
``` index a5ea108..bff54f3 100644 --- a/example_project/urls.py +++ b/example_project/urls.py @@ -25,11 +25,10 @@ try: except ImportError: from django.urls import reverse_lazy from django.views.generic import RedirectView +from postorius.views.list import list_index
urlpatterns = [ - url(r'^$', RedirectView.as_view( - url=reverse_lazy('list_index'), - permanent=True)), + url(r'^$', list_index), url(r'^postorius/', include('postorius.urls')),
Thank you. I've modified the patterns a bit, so that links to the list index, point also to "/": urlpatterns = [ url(r'^postorius/', include('postorius.urls')), url(r'^archive/', include('hyperkitty.urls')), url(r'', include('django_mailman3.urls')), url(r'^accounts/', include('allauth.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^$', list_index, name='list_index'), ]
Just as an FYI, my browser would always re-direct me to /posotrius/lists, even after I applied this patch, not sure if it was some sort of caching or something else.
If it's Firefox, then you can right-click on the site in the history window, and select "Forget about this site". (Strange: I did not get your message by email. For this reply I use the web-interface.) -- Peter
On 01/29/2018 11:43 AM, pmlists@free.fr wrote:
Just as an FYI, my browser would always re-direct me to /posotrius/lists, even after I applied this patch, not sure if it was some sort of caching or something else. That's because it's a permanent redirect. Your browser has to forget about it. If it's Firefox, then you can right-click on the site in the history window, and select "Forget about this site".
(Strange: I did not get your message by email. For this reply I use the web-interface.) That is easily explained. Your spam filters appear to be very aggressive. I got a reply to an earlier post by you, saying the message can't be delivered cause it's spam. I am running my own server, with a good reputation and valid spf and dkim keys. So it has to be something on your side...
On Mon, Jan 29, 2018, at 7:50 AM, Simon Hanna wrote:
On 01/29/2018 11:43 AM, pmlists@free.fr wrote:
Just as an FYI, my browser would always re-direct me to /posotrius/lists, even after I applied this patch, not sure if it was some sort of caching or something else. That's because it's a permanent redirect. Your browser has to forget about it.
Thanks, I didn't know about the permanent-redirect part! :)
If it's Firefox, then you can right-click on the site in the history window, and select "Forget about this site".
(Strange: I did not get your message by email. For this reply I use the web-interface.) That is easily explained. Your spam filters appear to be very aggressive. I got a reply to an earlier post by you, saying the message can't be delivered cause it's spam. I am running my own server, with a good reputation and valid spf and dkim keys. So it has to be something on your side...
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- Abhilash Raj maxking@asynchronous.in
participants (4)
-
Abhilash Raj
-
Peter Münster
-
pmlists@free.fr
-
Simon Hanna