2017 © Pedro Peláez
 

contao-module contao-short-urls

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

image

fritzmg/contao-short-urls

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  • Thursday, March 8, 2018
  • by fritzmg
  • Repository
  • 1 Watchers
  • 7 Stars
  • 1,871 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 19 Versions
  • 27 % Grown

The README.md

Abandoned, use terminal42/contao-url-rewrite instead., (*1)


, (*2)

Contao Short URLs

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL. For instance you can make redirects like, (*3)

  • example.org/foo » http://www.example.org/lorem/ipsum/dolor.html
  • example.org/123pdf » http://www.example.org/files/lorem/ipsum/dolor.pdf
  • example.org/abcd » http://www.some-other-website.com/foo.html

without editing the .htaccess file (to insert these redirects as Redirect, RedirectMatch or RewriteRule directives) or changing the server configuration. These redirects can be created in the backend under Content » Short URLs., (*4)

Backend screenshot, (*5)

Requirements

You need to edit Contao 3's default .htaccess file and change it as if you are using URLs without an .html suffix. i.e. you have to change these lines:, (*6)

RewriteCond %{REQUEST_FILENAME} !\.(htm|php|js|css|map|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|mp4|webm|ogv|mp3|ogg|oga|eot|otf|tt[cf]|woff2?|svgz?|pdf|gz)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .*\.html$ index.php [L]

to, (*7)

RewriteCond %{REQUEST_FILENAME} !\.(htm|php|js|css|map|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|mp4|webm|ogv|mp3|ogg|oga|eot|otf|tt[cf]|woff2?|svgz?|pdf|gz)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

so that any request (which does not point to a file or directory) is processed by Contao., (*8)

Contao 4

No changes to the .htaccess are necessary for Contao 4. Also you need to require at least version ^1.3.3 of this extension., (*9)

Acknowledgements

Development funded by Jaeggi & Tschui Grafik Webdesign GmbH and KASTNER Gruppe., (*10)

The Versions

08/03 2018

dev-master

9999999-dev http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0 GPL-2.0-only

The Requires

 

email form contao

08/03 2018

1.3.4

1.3.4.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0-only

The Requires

 

email form contao

16/02 2018

1.3.3

1.3.3.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0-only

The Requires

 

email form contao

11/12 2017

1.3.2

1.3.2.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

10/11 2017

1.3.1

1.3.1.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

10/11 2017

1.3.0

1.3.0.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

09/10 2017

1.2.3

1.2.3.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

09/10 2017

1.2.2

1.2.2.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

20/06 2017

1.2.1

1.2.1.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

20/06 2016

1.2.0

1.2.0.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

08/03 2016

1.1.5

1.1.5.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

07/03 2016

1.1.4

1.1.4.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

01/03 2016

1.1.3

1.1.3.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

21/02 2016

1.1.2

1.1.2.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

01/02 2016

1.1.1

1.1.1.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

18/01 2016

1.1.0

1.1.0.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

04/01 2016

1.0.2

1.0.2.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

07/12 2015

1.0.1

1.0.1.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao

19/11 2015

1.0.0

1.0.0.0 http://www.inspiredminds.at

Simple extension to provide "Short URLs", i.e. redirects to existing resources which otherwise have a longer URL.

  Sources   Download

GPL-2.0

The Requires

 

email form contao