Questions tagged [redirection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
77 views

Craft 3 redirect of existing and non-existing URLs

I'm upgrading a relatively large, but low budget, local government website from Craft 2 to Craft 3. The major remaining pain point is a replacement for the Craft 2 Reroute plugin, which is not ...
1
vote
1answer
76 views

Forcing a / with .htaccess

After redirecting a website to https environment I had the difficulty that .php/ was added to the url which resulted in double content. I have been able to get past this mistake but now I need to ...
1
vote
1answer
296 views

how to set loginPath in config file

I made a modal for login at homepage and put {%requireLogin%} tag in "User Profile" page. My general.php file looks like below: 'dev' => [ // Base site URL 'siteUrl' => null, ...
2
votes
1answer
83 views

Redirect Manager 301 results in “Entry DNE” error

This is my old URL. No entry exists here: /post/234234234234/happy-fourth-of-july This entry exists: /news/happy-fourth-of-july I have the Redirect Manager plugin setup as follows: However when I ...
1
vote
1answer
295 views

How to prevent access to asset folder (and redirect to other page)?

I have an asset source with url "/guides/". When I put a file to this folder, a file gets an url: domain.com/guides/myfile.pdf If I go to "domain.com/guides", it shows me the file directory. I ...
2
votes
1answer
82 views

onSaveUser event - cannot redirect or access errors

I've written a plugin which intercepts the user.onSaveUser event. However if the save fails the user is still redirected to the page specified in the 'redirect' parameter/field of the form. How do I ...
2
votes
1answer
1k views

Nginx: index.php URLs still being served alongside pretty URLs

For whatever reason https://domain.com/index.php?p=path/to/whatever and https://domain.com/index.php/to/whatever both still work and are not being redirected or rewritten to https://domain.com/path/to/...
1
vote
1answer
340 views

Changing the “homepage” url for logged-in users

I know I can set postLoginRedirect in config/general.php to send the user to a specific page after login. Is there a way to grab that value in the template? This came up because I noticed that the {{...
2
votes
2answers
5k views

Force trailing slash on URLs

This is an .htaccess question which I found the answer to but, I need to integrate it with the .htaccess that comes with Craft. I need to add trailing slashes to the end of all URLs. I know there is ...
2
votes
2answers
2k views

How to redirect an entry's URL to a specific URL?

Say I have a custom field "URL" for each entry and I want them to be redirected to these specific URLs instead of Craft's. Similar to WordPress "Page Links To" plugin. http://wordpress.org/plugins/...
3
votes
1answer
776 views

Setting up redirects via Craft routes?

I'm trying to set up redirects for some pages (specifically pages in structure sections that are there purely for structure, which I want to redirect to their first child). Craft's "routes" seem to ...
17
votes
4answers
11k views

301 Redirects Appends ?p=original/url/path - how can I remove?

Whether I'm using the Reroute plugin or plugging it in .htaccess, changing the path elsewhere appends the query in the end. How can I remove? Redirect 301 /blog/category /blog/archive Is the line I ...
7
votes
1answer
947 views

Is it possible to show a successful logout message?

When site members click logout they are taken back to the homepage. I'd like to redirect the user back to the login page but with a "You're logged out" type of message. Is something like this ...