Questions tagged as 'htaccess'

1
answer

How to use Friendly URLs to create download link

Hello, I have the following database: ID | Chave | Nome | Tamanho =========================== 1 | q3T49 | Arq1 | 20 MB 2 | 56Q4u | Arq2 | 35 MB 3 | 7fa4b | Arq3 | 89 MB 4 | 13dqa | Arq4 | 49 MB And the files are stored in ./arquivos...
asked by 13.03.2017 / 00:17
2
answers

.htaccess problem for addressing without www

When I type in the browser    phimodasecia.com.br My site / store enters (is redirected) with error as below:    https://www.phimodasecia.com.br/https://phimodasecia.com.br/ My configuration for .htaccess is # =====...
asked by 01.02.2017 / 01:32
1
answer

Remove php file extension, less than one folder

I have the .htaccess file and want to get the file extensions less than the following: index.php and the system / func / folder which is where my renderings are RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAM...
asked by 27.01.2017 / 14:47
1
answer

Silex can not find routes

I have a Silex 2.0 application with PHP 7.0 and Apache 2.4 (on port 8080) with the following structure: silex/ | - vendor/ | - web/ | - index.php | - composer.json | - .htaccess composer.json { "require": {...
asked by 11.01.2017 / 22:02
1
answer

Doubt in .htacess

Well, I'm doing internships in a web development company and tals and soon we had a problem in redirecting the page. In the company we used for this project Php MVC (I never got to deepen in Php) and an .htacess file that I had never seen bef...
asked by 29.11.2016 / 14:26
1
answer

Change default project directory made in Zend 2

Hello everyone, this is my first post: D I'm new to Zend framework and I'm using Zend 2 + PHP 5.5 + MySql + Apache I have the system on my server running through link and I am not using Apache Virtual Host, I am only using rewrite mode a...
asked by 28.10.2016 / 22:20
1
answer

Doubt with htaccess file

Hello, everyone! I have a question regarding my .htaccess file. It turns out that I have a site in two versions, common and mobile. In the mobile file folder, there is the .htaccess file that receives the following code: RewriteCond %{HTTP_...
asked by 06.09.2016 / 23:02
1
answer

Htaccess accept bar at the end

I would like to know how do I make my URL accept bar at the end / , because in the way that this, when I add bar, the images and the css are based on the URL with the parameter, generating error in loading. > http://localhost/pagina/index...
asked by 11.09.2016 / 15:46
1
answer

htacces for nginx

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?url=$1 Options -Indexes I need to convert this rule to htaccess to nginx     
asked by 13.09.2016 / 20:33
1
answer

Problems with friendly URL in codeigniter

I have the following problem. I'm working with a system in CodeIgniter and need to remove the index.php from the url. My .htaccess is as below: RewriteEngine on RewriteCond $1 !^(index\.php|resources|assets|robots\.txt) RewriteCond %{REQ...
asked by 23.11.2016 / 18:44