-
Notifications
You must be signed in to change notification settings - Fork 4
Home
KUBO Atsuhiro edited this page Oct 7, 2014
·
9 revisions
A Symfony bundle to rewrite URLs for applications behind reverse proxies
- URL rewriting for Controller::generateUrl() in controllers
- URL rewriting for {{ asset('...') }} in templates
- PHP
5.3.3or greater -
Symfony Config component
2.3.0or greater -
Symfony DependencyInjection component
2.3.0or greater - Symfony FrameworkBundle
2.3.0or greater -
Symfony HttpKernel component
2.3.0or greater -
Symfony Routing component
2.3.0or greater
PHPMentorsProxyURLRewriteBundle can be installed using Composer.
First, add the dependency to phpmentors/proxy-url-rewrite-bundle into your composer.json file as the following:
composer require phpmentors/proxy-url-rewrite-bundle "1.0.0"
Second, add PHPMentorsProxyURLRewriteBundle into your bundles to register in AppKernel::registerBundles() as the following:
...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new PHPMentors\ProxyURLRewriteBundle\PHPMentorsProxyURLRewriteBundle(),
);
...app/config/config_prod.yml:
...
phpmentors_proxy_url_rewrite:
proxy_urls:
"!^.*!": "/foo/bar"app/config/config_dev.yml:
...
phpmentors_proxy_url_rewrite:
enabled: falsegit clone https://github.com/phpmentors-jp/proxy-url-rewrite-bundle.gitIf you find a bug or have a question, or want to request a feature, create an issue or pull request for it on Issues.
Copyright (c) 2014 KUBO Atsuhiro, All rights reserved.


