Loading...
 
Architecture / Installation

Architecture / Installation


Re: 301 Redirect with trailing slash not working

posts: 214

In the Redirect I use, the syntax requires the target URL to be fully qualified, so your "working" example would not work for me. Or are you assuming we realize you truncated the URL in your "working" example?

You can partially fix your problem using RedirectMatch instead of Redirect.

Copy to clipboard
RedirectMatch /simplyspoiled/? http://domain.com/tiki-index.php?page=Simply+Spoiled

works with the ending slash. The question mark after the last slash means one or none of the preceding character, so it will redirect for both /simplyspoiled and /simplyspoiled/.

Or use:

Copy to clipboard
RedirectMatch /simplyspoiled(/index.php|/?) http://domain.com/tiki-index.php?page=Simply+Spoiled

to match /simplyspoiled, /simplyspoiled/, and /simplyspoiled/index.php.

I do not know how you can get a SEF target URL to work with the redirect using this method though.

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting