Questions tagged as 'htaccess'

1
answer

how to hide subfolders of the url through .htacess

Hello! how to change a url through htacess. wanted that url: http://localhost/site/product/view/Mi00OTI/golbolaver look like this: http://localhost/site/view/Mi00OTI/golbolaver     
asked by 02.04.2017 / 21:15
2
answers

htaccess hide model parameters MVC [duplicate]

I have the following URL: http://192.168.1.67/plays/mvc/index.php?route=profile&user=mikas.28 Where route = PAGE and user = USERNAME.USERID I have the following htaccess Options -Multiviews RewriteEngine On RewriteBase /...
asked by 11.09.2015 / 16:03
1
answer

How to optimize html and css files?

Optimization does not accuse the compression of html and css files. After compacting them in the html minifier and css minifier and putting the following code in htaccess ( see below) still does not accuse the compaction in the reader I u...
asked by 03.10.2016 / 17:12
1
answer

CodeIgniter 3 - HMVC - Problem with routes, Not Found or Failed to Load Session.php

My scenario is as follows: I'm using CodeIgniter 3 with HMVC, while doing only local development, I had no problems with XAMPP with Windows, I went up to my test server which is an Ubuntu Server and then started the problems: The routes st...
asked by 16.05.2016 / 15:25
1
answer

Cache control for a specific file

If we want to implement a cache control for a particular file type, using htaccess we can proceed as follows: <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 1 month" ExpiresByType application/jav...
asked by 11.11.2014 / 16:56
1
answer

Place Laravel on Default Level / Directory [duplicate]

I have a Laravel application and I deploy it via git to my server. But the problem is that the server always throws the deploy into the public folder , and Laravel originally is meant to stay up . .htaccess or Laravel itsel...
asked by 26.10.2015 / 16:07
1
answer

Problem with subfolders and url rewrite with Laravel

I'm trying to make Laravel 4 run in a subdirectory, using .htaccess to be able to rewrite the url to the public folder Example: C:\xammp\htdocs\laravel4 .htaccess is rewriting C:\xammp\htdocs\laravel4 to C...
asked by 11.12.2014 / 17:46
2
answers

Htaccess is not redirecting to 404 error page

I have .htaccess with the following configuration: ErrorDocument 404 /erro404.html <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^index/?$ index.php [NC,L] RewriteRule ^index/([a-z0-9-]+)?$ index.php?pagina...
asked by 18.01.2015 / 20:27
2
answers

Redirecting HTTP requests

I have the following problem: I want to redirect (through .htaccess) the urls below with temporary redirect ( HTTP/1.1 302 Moved Temporarily ) Examples: http://www.site.com.br/artigo/0/ to http://www.site.com.br/artigo/1/...
asked by 18.02.2014 / 16:02
1
answer

Redirect HTTP to HTTPS in .htaccess with Let's Encrypt

I can not in any way test if my address is on https when let's encrypt is installed ... Could some charitable soul help me redirect to https? I have installed on my hosting UOLHost (Platform: Linux, Apache: Version 2.4) let's encrypt ... A...
asked by 30.05.2017 / 01:08