symfony / apache-pack Goto Github PK
View Code? Open in Web Editor NEWA Symfony Pack for Symfony Apache
Home Page: https://symfony.com/
License: MIT License
A Symfony Pack for Symfony Apache
Home Page: https://symfony.com/
License: MIT License
How would we add a global redirect to https here?
Hi there,
I run your command:
symfony/apache-pack
but no .htacess file was generated inside the public directory.
Regards.
Is this pack working? According to symfony/demo#711 (comment) it should add .htaccess
to the public
folder.
But for me it did not do anything at all.
svg file are not list in the .htaccess
For exemple :
/bundles/apiplatform/logo-header.svg
Hi,
after installing your bundle, it automatically removes index.php
from my URLs (so this is great !) but I still have the public
folder.
How can I remove it too ? Should I do it in the /public/.htaccess
or configure a virtual host in apache ?
I develop locally on a PC with Wampserver.
URL before installing apache-pack :
http://localhost/project/public/index.php/my-page
URL after installation :
http://localhost/project/public/my-page
Desired URL :
http://localhost/project/my-page
/public/.htaccess (generated by apache-pack) :
DirectoryIndex index.php
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
# Sets the HTTP_AUTHORIZATION header removed by Apache
RewriteCond %{HTTP:Authorization} .
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [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}/index.php [L]
</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 307 ^/$ /index.php/
# RedirectTemp cannot be used instead
</IfModule>
</IfModule>
I'm upgrading a Symfony 2.6 installation and found this package as a dependency. This package seems to be empty and it doesn't add any functionality. Is this package/project deprecated?. Can I safely remove it from the composer dependencies?
[Composer\Repository\RepositorySecurityException]
The contents of https://packagist.org/p/symfony/asset%24a565a61c1454da4260b7cf48e12d0d61f8f1b6b
a1148464258d1234987f719e0.json do not match its signature. This could indicate a man-in-the-mid
dle attack or e.g. antivirus software corrupting files. Try running composer again and report t
his if you think it is a mistake.
Hello,
On Symfony 4.4, i used the bundle symfony/apache-pack (composer require symfony/apache-pack), as indicated on Symfony web site to generate rewrite rules.
The pack install a .htaccess file into public directory. (/public)
My web server Apache 2.4, shows that the line 55 has errors: "RewriteRule: bad flag delimiters"
RewriteRule ^ %{ENV:BASE}/index.php [L]Directory
The word "Directory" at the end of the line is the problem.
Could you please fix it, the correct line is:
RewriteRule ^ %{ENV:BASE}/index.php [L]
Thank you!
Yasser.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.