Questions tagged as 'htaccess'

0
answers

Problem in RewriteRule (HTACCESS)

I have the following HTACCESS code: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^customer/$ index.php [L,NC] </IfModule> (I cleaned the rest of the code for simplicity.) In the folder HTACCESS is in (root), it has a...
asked by 07.10.2015 / 03:19
0
answers

Get the string of a non-existent request

How to get the string from a non-existent request? I'm using .htaccess to redirect non-existent url requests (error 404). But when the 404.php page was displayed, I'd like to get the non-existent url the client typed. That is, the non-exis...
asked by 29.09.2015 / 15:50
1
answer

Laravel 5 - Remove public from URL

I've developed a form and need to "play" it on the production server . I do not have any type of server access (Linux, Slackware). I access my application through the link url. With the script below I get only the message Sorry, the page y...
asked by 10.04.2015 / 16:07
1
answer

Friendly URL using HTACCESS

I have the following link: dominio.com/?p=filmes_v&m=tt081692 My .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^film/?$ index.php?p=filmes [NC,L] RewriteRule ^film/([a-z0-9-]+)/?$ index.php?p=fi...
asked by 21.07.2015 / 21:33
1
answer

.htaccess redirect when indexOf

How to redirect user when it tries to access a folder whose page does not contain the index? Ex: www.eu.com/ <-- index OK www.eu.com/arquivos/ <-- index Of redireciona para página inicial     
asked by 05.08.2015 / 18:25
2
answers

HTACCESS - External File [closed]

I have a .htaccess file, but if I have a file outside the folder, it will not allow me access ... And I would like to allow: RewriteEngine on RewriteCond $1 !^(index\.php|site|assets|fonts|images|css|js|administrar|entrada|docs|system) Rewrite...
asked by 26.07.2015 / 03:32
1
answer

Change all types of requests retaining parameters and URL via htaccess

I'm breaking my head for hours trying to understand the htaccess thing My need is as follows, I have a root directory of my system, and each user accesses the system through the URL www.mydminio.com.br/nomedusername But I need to be intern...
asked by 07.08.2015 / 16:18
2
answers

Enable .htaccess on Ubuntu 14.10, Apache / 2.4.10

I'm trying to enable .htacces on Ubuntu 14.10, but I saw at the time of setting up the new version of Apache / 2.4.10 the configure mode 'is different from the previous ones. I'm putting the files in / var / www / I've tried it already but...
asked by 24.06.2015 / 03:35
0
answers

friendly url in two sub directories

I'm trying to make the url friendly with .htaccess it consists of: RewriteEngine On RewriteRule ^([a-z_-]+)$ index.php?p=$1 RewriteRule ^([0-9]+)$ index.php?g=$1 RewriteRule ^([a-z_-]+)\/([0-9]+)$ index.php?p=$1&c=$2 RewriteRule ^([a-z_-]+...
asked by 15.07.2015 / 18:40
0
answers

Redirect site with .htacess

I need to use friendly urls and am trying to make an adjustment with .htacess I have a url: http://www.site.com.br/default.asp?id=meuid&acao=minhaacao&hint=minhahint I need it to look like this: http://www.site.com.br/meuid?aca...
asked by 01.05.2015 / 18:00