leoestela/sportchecked/master/web/.htaccess - Htaccess File

leoestela/sportchecked/master/web/.htaccess

# Use the front controller as index file. It serves as a fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
DirectoryIndex app.php

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Determine the RewriteBase automatically and set it as environment variable.
    # If you are using Apache aliases to do mass virtual hosting or installed the
    # project in a subdirectory, the base path will be prepended to allow proper
    # resolution of the app.php file and to redirect to the correct URI. It will
    # work in environments without path prefix as well, providing a safe, one-size
    # fits all solution. But as you do not need it in this case, you can comment
    # the following 2 lines to eliminate the overhead.
    
    #RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::2$
    #RewriteRule ^(.*) - [E=BASE:%1]

    # Redirect to URI without front controller to prevent duplicate content
    # (with and without `/app.php`). Only do this redirect on the initial
    # rewrite by Apache and not on subsequent cycles. Otherwise we would get an
    # endless redirect loop (request -> rewrite to front controller ->
    # redirect -> request -> ...).
    # So in case you get a "too many redirects" error or you always get redirected
    # to the start page because your Apache does not expose the REDIRECT_STATUS
    # environment variable, you have 2 choices:
    # - disable this feature by commenting the following 2 lines or
    # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the
    #   following RewriteCond (best solution)
    
    #RewriteCond %{ENV:REDIRECT_STATUS} ^$
    #RewriteRule ^app.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]

    # If the requested filename exists, simply serve it.
    # We only want to let Apache serve files and not directories.
    
    #RewriteCond %{REQUEST_FILENAME} -f
    #RewriteRule .? - [L]

    # Rewrite all other queries to the front controller.
    #RewriteRule .? %{ENV:BASE}/app.php [L]

    # skip "real" requests
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule .* - [QSA,L]

    # _wdt
    RewriteCond %{REQUEST_URI} ^/_wdt/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_wdt,E=_ROUTING_param_token:%1,E=_ROUTING_default__controller:web_profiler.controller.profiler:toolbarAction]

    # _profiler_home
    RewriteCond %{REQUEST_URI} ^/_profiler$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/_profiler/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_home,E=_ROUTING_default__controller:web_profiler.controller.profiler:homeAction]

    # _profiler_search
    RewriteCond %{REQUEST_URI} ^/_profiler/search$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_search,E=_ROUTING_default__controller:web_profiler.controller.profiler:searchAction]

    # _profiler_search_bar
    RewriteCond %{REQUEST_URI} ^/_profiler/search_bar$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_search_bar,E=_ROUTING_default__controller:web_profiler.controller.profiler:searchBarAction]

    # _profiler_purge
    RewriteCond %{REQUEST_URI} ^/_profiler/purge$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_purge,E=_ROUTING_default__controller:web_profiler.controller.profiler:purgeAction]

    # _profiler_info
    RewriteCond %{REQUEST_URI} ^/_profiler/info/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_info,E=_ROUTING_param_about:%1,E=_ROUTING_default__controller:web_profiler.controller.profiler:infoAction]

    # _profiler_import
    RewriteCond %{REQUEST_URI} ^/_profiler/import$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_import,E=_ROUTING_default__controller:web_profiler.controller.profiler:importAction]

    # _profiler_export
    RewriteCond %{REQUEST_URI} ^/_profiler/export/([^/.]++).txt$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_export,E=_ROUTING_param_token:%1,E=_ROUTING_default__controller:web_profiler.controller.profiler:exportAction]

    # _profiler_phpinfo
    RewriteCond %{REQUEST_URI} ^/_profiler/phpinfo$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_phpinfo,E=_ROUTING_default__controller:web_profiler.controller.profiler:phpinfoAction]

    # _profiler_search_results
    RewriteCond %{REQUEST_URI} ^/_profiler/([^/]++)/search/results$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_search_results,E=_ROUTING_param_token:%1,E=_ROUTING_default__controller:web_profiler.controller.profiler:searchResultsAction]

    # _profiler
    RewriteCond %{REQUEST_URI} ^/_profiler/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler,E=_ROUTING_param_token:%1,E=_ROUTING_default__controller:web_profiler.controller.profiler:panelAction]

    # _profiler_router
    RewriteCond %{REQUEST_URI} ^/_profiler/([^/]++)/router$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_router,E=_ROUTING_param_token:%1,E=_ROUTING_default__controller:web_profiler.controller.router:panelAction]

    # _profiler_exception
    RewriteCond %{REQUEST_URI} ^/_profiler/([^/]++)/exception$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_exception,E=_ROUTING_param_token:%1,E=_ROUTING_default__controller:web_profiler.controller.exception:showAction]

    # _profiler_exception_css
    RewriteCond %{REQUEST_URI} ^/_profiler/([^/]++)/exception.css$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_profiler_exception_css,E=_ROUTING_param_token:%1,E=_ROUTING_default__controller:web_profiler.controller.exception:cssAction]

    # _configurator_home
    RewriteCond %{REQUEST_URI} ^/_configurator$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/_configurator/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_configurator_home,E=_ROUTING_default__controller:Sensio\Bundle\DistributionBundle\Controller\ConfiguratorController::checkAction]

    # _configurator_step
    RewriteCond %{REQUEST_URI} ^/_configurator/step/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_configurator_step,E=_ROUTING_param_index:%1,E=_ROUTING_default__controller:Sensio\Bundle\DistributionBundle\Controller\ConfiguratorController::stepAction]

    # _configurator_final
    RewriteCond %{REQUEST_URI} ^/_configurator/final$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:_configurator_final,E=_ROUTING_default__controller:Sensio\Bundle\DistributionBundle\Controller\ConfiguratorController::finalAction]

    # message_new
    RewriteCond %{REQUEST_URI} ^/message/new$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/message/new/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:message_new,E=_ROUTING_default__controller:SportChecked\MessageBundle\Controller\DefaultController::messageNewAction]

    # message_sent
    RewriteCond %{REQUEST_URI} ^/message/sent$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/message/sent/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:message_sent,E=_ROUTING_default__controller:SportChecked\MessageBundle\Controller\DefaultController::messageSentAction]

    # index
    RewriteCond %{REQUEST_URI} ^/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:index,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::indexAction]

    # static_page
    RewriteCond %{REQUEST_URI} ^/site/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:static_page,E=_ROUTING_param_page:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\SiteController::staticAction]

    # signup
    RewriteCond %{REQUEST_URI} ^/user/signup$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/signup/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:signup,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::signupAction]

    # login
    RewriteCond %{REQUEST_URI} ^/user/login$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/login/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:login,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::loginAction]

    # login_check
    RewriteCond %{REQUEST_URI} ^/user/login_check$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/login_check/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:login_check]

    # logout
    RewriteCond %{REQUEST_URI} ^/user/logout$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/logout/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:logout]

    # intro
    RewriteCond %{REQUEST_URI} ^/user/intro$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/intro/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:intro,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::introAction]

    # profile
    RewriteCond %{REQUEST_URI} ^/user/profile$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/profile/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:profile,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::profileAction]

    # user_wellcome
    RewriteCond %{REQUEST_URI} ^/intro/user/wellcome$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/intro/user/wellcome/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_wellcome,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userWellcomeAction]

    # user_wellcome_search
    RewriteCond %{REQUEST_URI} ^/intro/user/wellcome/search$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/intro/user/wellcome/search/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_wellcome_search,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userWellcomeSearchAction]

    # user_intro_boards
    RewriteCond %{REQUEST_URI} ^/intro/user/boards$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/intro/user/boards/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_intro_boards,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userIntroBoardsAction]

    # user_intro_boards_load
    RewriteCond %{REQUEST_URI} ^/intro/user/boards/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_intro_boards_load,E=_ROUTING_param_lastElement:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userIntroBoardsLoadAction]

    # user_publications
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_publications,E=_ROUTING_param_userSlug:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userPublicationsAction]

    # user_publications_load
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_publications_load,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_lastElement:%2,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userPublicationsLoadAction]

    # user_boards
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/boards$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/boards/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_boards,E=_ROUTING_param_userSlug:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userBoardsAction]

    # user_boards_load
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/boards/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_boards_load,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_lastElement:%2,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userBoardsLoadAction]

    # user_board_publications
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/board/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/board/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_board_publications,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_boardId:%2,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userBoardPublicationsAction]

    # user_board_publications_load
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/board/([^/]++)/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_board_publications_load,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_boardId:%2,E=_ROUTING_param_lastElement:%3,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userBoardPublicationsLoadAction]

    # user_sports
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/sports$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/sports/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_sports,E=_ROUTING_param_userSlug:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userSportsAction]

    # user_sports_load
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/sports/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_sports_load,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_lastElement:%2,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userSportsLoadAction]

    # user_follow_sport
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/follow$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/follow/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_follow_sport,E=_ROUTING_param_sportId:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userFollowSportAction]

    # user_unfollow_sport
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/unfollow$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/unfollow/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_unfollow_sport,E=_ROUTING_param_sportId:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userUnfollowSportAction]

    # user_followers
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/followers$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/followers/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_followers,E=_ROUTING_param_userSlug:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userFollowersAction]

    # user_followers_load
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/followers/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_followers_load,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_lastElement:%2,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userFollowersLoadAction]

    # user_following
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/following$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/following/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_following,E=_ROUTING_param_userSlug:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userFollowingAction]

    # user_following_load
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/following/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_following_load,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_lastElement:%2,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userFollowingLoadAction]

    # user_lists
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/lists$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/lists/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_lists,E=_ROUTING_param_userSlug:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userListsAction]

    # user_lists_load
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/lists/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_lists_load,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_lastElement:%2,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userListsLoadAction]

    # user_list_members
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/list/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/list/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_list_members,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_listId:%2,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userListMembersAction]

    # user_list_members_load
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/list/([^/]++)/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_list_members_load,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_listId:%2,E=_ROUTING_param_lastElement:%3,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userListMembersLoadAction]

    # user_modal_contact_lists
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/lists/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/lists/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_modal_contact_lists,E=_ROUTING_param_userSlug:%1,E=_ROUTING_param_contactSlug:%2,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userModalContactListsAction]

    # user_follow_contact
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/follow$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/follow/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_follow_contact,E=_ROUTING_param_userId:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userFollowContactAction]

    # user_unfollow_contact
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/unfollow$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/([^/]++)/unfollow/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_unfollow_contact,E=_ROUTING_param_userId:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userUnfollowContactAction]

    # user_search
    RewriteCond %{REQUEST_URI} ^/user/search/search$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/search/search/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_search,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userSearchAction]

    # user_search_load
    RewriteCond %{REQUEST_URI} ^/user/search/search/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_search_load,E=_ROUTING_param_lastElement:%1,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userSearchLoadAction]

    # user_search_button
    RewriteCond %{REQUEST_URI} ^/user/search/button$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/search/button/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_search_button,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userSearchButtonAction]

    # user_modal_search
    RewriteCond %{REQUEST_URI} ^/user/search/modal-search$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/search/modal-search/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_modal_search,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userModalSearchAction]

    # user_modal_search_reload
    RewriteCond %{REQUEST_URI} ^/user/search/reload$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/search/reload/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_modal_search_reload,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userModalSearchReloadAction]

    # user_modal_onload
    RewriteCond %{REQUEST_URI} ^/user/search/onload$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/user/search/onload/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:user_modal_onload,E=_ROUTING_default__controller:SportChecked\UserBundle\Controller\DefaultController::userModalOnloadAction]

    # sport_checked
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_checked,E=_ROUTING_param_sportId:%1,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportCheckedAction]

    # sport_menu_elements
    RewriteCond %{REQUEST_URI} ^/sport/menu/elements$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/sport/menu/elements/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_menu_elements,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportMenuElementsAction]

    # usersport_checked
    RewriteCond %{REQUEST_URI} ^/usersport/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/usersport/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:usersport_checked,E=_ROUTING_param_userSportId:%1,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::userSportCheckedAction]

    # usersport_menu_elements
    RewriteCond %{REQUEST_URI} ^/usersport/menu/elements$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/usersport/menu/elements/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:usersport_menu_elements,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::userSportMenuElementsAction]

    # sport_publications
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/publications$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/publications/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_publications,E=_ROUTING_param_sportId:%1,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportPublicationsAction]

    # sport_publications_load
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/publications/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_publications_load,E=_ROUTING_param_sportId:%1,E=_ROUTING_param_lastElement:%2,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportPublicationsLoadAction]

    # sport_modality_publications
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/publications/modality/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_modality_publications,E=_ROUTING_param_sportId:%1,E=_ROUTING_param_modalityId:%2,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportPublicationsAction]

    # sport_modality_publications_load
    RewriteCond %{REQUEST_URI} ^/sport/([^/]++)/([^/]++)/publications/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_modality_publications_load,E=_ROUTING_param_sportId:%1,E=_ROUTING_param_modalityId:%2,E=_ROUTING_param_lastElement:%3,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportPublicationsLoadAction]

    # sport_wellcome
    RewriteCond %{REQUEST_URI} ^/intro/sport/wellcome$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/intro/sport/wellcome/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_wellcome,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportWellcomeAction]

    # sport_wellcome_load
    RewriteCond %{REQUEST_URI} ^/intro/sport/wellcome/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_wellcome_load,E=_ROUTING_param_lastElement:%1,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportWellcomeLoadAction]

    # sport_search
    RewriteCond %{REQUEST_URI} ^/search/sport/search$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/search/sport/search/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_search,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportSearchAction]

    # sport_search_button
    RewriteCond %{REQUEST_URI} ^/sport/search/button$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/sport/search/button/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_search_button,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportSearchButtonAction]

    # sport_search_load
    RewriteCond %{REQUEST_URI} ^/sport/search/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:sport_search_load,E=_ROUTING_param_lastElement:%1,E=_ROUTING_default__controller:SportChecked\SportBundle\Controller\DefaultController::sportSearchLoadAction]

    # publication_load
    RewriteCond %{REQUEST_URI} ^/publication/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_load,E=_ROUTING_param_lastElement:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationLoadAction]

    # publication_new
    RewriteCond %{REQUEST_URI} ^/publication/new$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/new/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_new,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationNewAction]

    # publication_edit
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/edit$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/edit/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_edit,E=_ROUTING_param_publicationId:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationEditAction]

    # publication_modal_share
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/modal-share$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/modal-share/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_modal_share,E=_ROUTING_param_publicationId:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationModalShareAction]

    # publication_share
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/share$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/share/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_share,E=_ROUTING_param_publicationId:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationShareAction]

    # publication_unshare
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/unshare$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/unshare/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_unshare,E=_ROUTING_param_publicationId:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationUnshareAction]

    # publication_modal_save
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/modal-save$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/modal-save/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_modal_save,E=_ROUTING_param_publicationId:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationModalSaveAction]

    # publication_save
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/board/([^/]++)/save$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/board/([^/]++)/save/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_save,E=_ROUTING_param_publicationId:%1,E=_ROUTING_param_boardId:%2,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationSaveAction]

    # publication_delete
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/delete$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/delete/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_delete,E=_ROUTING_param_publicationId:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationDeleteAction]

    # publication_modal_comments
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/modal-comments$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/modal-comments/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_modal_comments,E=_ROUTING_param_publicationId:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationModalCommentsAction]

    # publication_comment_delete
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/comment/([^/]++)/delete$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/([^/]++)/comment/([^/]++)/delete/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_comment_delete,E=_ROUTING_param_publicationId:%1,E=_ROUTING_param_commentId:%2,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationDeleteCommentAction]

    # publication_search
    RewriteCond %{REQUEST_URI} ^/publication/search$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/search/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_search,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationSearchAction]

    # publication_search_load
    RewriteCond %{REQUEST_URI} ^/publication/search/load/([^/]++)$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_search_load,E=_ROUTING_param_lastElement:%1,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationSearchLoadAction]

    # publication_search_button
    RewriteCond %{REQUEST_URI} ^/publication/search-button$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/publication/search-button/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:publication_search_button,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::publicationSearchButtonAction]

    # app_modal_add_object
    RewriteCond %{REQUEST_URI} ^/modal-add-object$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/modal-add-object/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:app_modal_add_object,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::appModalAddObjectAction]

    # app_modal_onload
    RewriteCond %{REQUEST_URI} ^/modal-onload$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/modal-onload/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:app_modal_onload,E=_ROUTING_default__controller:SportChecked\PublicationBundle\Controller\DefaultController::appModalOnloadAction]

    # modality_checked
    RewriteCond %{REQUEST_URI} ^/modality/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/modality/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:modality_checked,E=_ROUTING_param_modalityId:%1,E=_ROUTING_default__controller:SportChecked\FeatureBundle\Controller\DefaultController::modalityCheckedAction]

    # modality_menu_elements
    RewriteCond %{REQUEST_URI} ^/modality/menu/elements$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/modality/menu/elements/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:modality_menu_elements,E=_ROUTING_default__controller:SportChecked\FeatureBundle\Controller\DefaultController::modalityMenuElementsAction]

    # list_checked
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:list_checked,E=_ROUTING_param_listId:%1,E=_ROUTING_default__controller:SportChecked\ContactBundle\Controller\DefaultController::listCheckedAction]

    # list_menu_elements
    RewriteCond %{REQUEST_URI} ^/list/menu/elements$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/list/menu/elements/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:list_menu_elements,E=_ROUTING_default__controller:SportChecked\ContactBundle\Controller\DefaultController::listMenuElementsAction]

    # list_new
    RewriteCond %{REQUEST_URI} ^/list/list/new$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/list/list/new/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:list_new,E=_ROUTING_default__controller:SportChecked\ContactBundle\Controller\DefaultController::listNewAction]

    # list_new_from_contact
    RewriteCond %{REQUEST_URI} ^/list/new/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/list/new/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:list_new_from_contact,E=_ROUTING_param_contactSlug:%1,E=_ROUTING_default__controller:SportChecked\ContactBundle\Controller\DefaultController::listNewFromContactAction]

    # list_edit
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/edit$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/edit/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:list_edit,E=_ROUTING_param_listId:%1,E=_ROUTING_default__controller:SportChecked\ContactBundle\Controller\DefaultController::listEditAction]

    # list_advice
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/advice$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/advice/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:list_advice,E=_ROUTING_param_listId:%1,E=_ROUTING_default__controller:SportChecked\ContactBundle\Controller\DefaultController::listAdviceAction]

    # list_delete
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/delete$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/delete/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:list_delete,E=_ROUTING_param_listId:%1,E=_ROUTING_default__controller:SportChecked\ContactBundle\Controller\DefaultController::listDeleteAction]

    # list_add_member
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/add/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/add/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:list_add_member,E=_ROUTING_param_listId:%1,E=_ROUTING_param_contactId:%2,E=_ROUTING_default__controller:SportChecked\ContactBundle\Controller\DefaultController::listAddMemberAction]

    # list_delete_member
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/delete/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/list/([^/]++)/delete/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:list_delete_member,E=_ROUTING_param_listId:%1,E=_ROUTING_param_contactId:%2,E=_ROUTING_default__controller:SportChecked\ContactBundle\Controller\DefaultController::listDeleteMemberAction]

    # category_checked
    RewriteCond %{REQUEST_URI} ^/category/([^/]++)$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/category/([^/]++)/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:category_checked,E=_ROUTING_param_categoryId:%1,E=_ROUTING_default__controller:SportChecked\CategoryBundle\Controller\DefaultController::categoryCheckedAction]

    # category_menu_elements
    RewriteCond %{REQUEST_URI} ^/category/menu/elements$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/category/menu/elements/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:category_menu_elements,E=_ROUTING_default__controller:SportChecked\CategoryBundle\Controller\DefaultController::categoryMenuElementsAction]

    # board_new
    RewriteCond %{REQUEST_URI} ^/board/new$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/board/new/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:board_new,E=_ROUTING_default__controller:SportChecked\BoardBundle\Controller\DefaultController::boardNewAction]

    # board_edit
    RewriteCond %{REQUEST_URI} ^/board/([^/]++)/edit$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/board/([^/]++)/edit/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:board_edit,E=_ROUTING_param_boardId:%1,E=_ROUTING_default__controller:SportChecked\BoardBundle\Controller\DefaultController::boardEditAction]

    # board_advice
    RewriteCond %{REQUEST_URI} ^/board/([^/]++)/advice$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/board/([^/]++)/advice/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:board_advice,E=_ROUTING_param_boardId:%1,E=_ROUTING_default__controller:SportChecked\BoardBundle\Controller\DefaultController::boardAdviceAction]

    # board_delete
    RewriteCond %{REQUEST_URI} ^/board/([^/]++)/delete$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/board/([^/]++)/delete/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:board_delete,E=_ROUTING_param_boardId:%1,E=_ROUTING_default__controller:SportChecked\BoardBundle\Controller\DefaultController::boardDeleteAction]

    # board_simple_form
    RewriteCond %{REQUEST_URI} ^/board/([^/]++)/simple-form$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/board/([^/]++)/simple-form/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:board_simple_form,E=_ROUTING_param_boardId:%1,E=_ROUTING_default__controller:SportChecked\BoardBundle\Controller\DefaultController::boardSimpleFormAction]

    # board_new_from_combo
    RewriteCond %{REQUEST_URI} ^/board/new-simple$
    RewriteRule .* $0/ [QSA,L,R=301]
    RewriteCond %{REQUEST_URI} ^/board/new-simple/$
    RewriteRule .* app.php [QSA,L,E=_ROUTING_route:board_new_from_combo,E=_ROUTING_default__controller:SportChecked\BoardBundle\Controller\DefaultController::boardNewFromComboAction]
</IfModule>

<IfModule !mod_rewrite.c>
    <IfModule mod_alias.c>
        # When mod_rewrite is not available, we instruct a temporary redirect of
        # the start page to the front controller explicitly so that the website
        # and the generated links can still be used.
        RedirectMatch 302 ^/$ /app.php/
        # RedirectTemp cannot be used instead
    </IfModule>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
ENV, REDIRECT_STATUS, REQUEST_FILENAME, REQUEST_URI, static

Comments

Apache