Questions tagged as 'url-rewrite'

1
answer

Rule conflict in .htaccess

I'm facing an error with the .htaccess file and I'm not getting resolved, it's the following: I have the following rule: RewriteRule ^([^\.]+)$ $1.php [NC,L] This rule aims to ignore the .php extension of all files accessed in my directo...
asked by 24.08.2017 / 01:48
1
answer

How to avoid rewriting redirection?

I have the following rule in the root: RewriteEngine On RewriteRule ^webapp/(.*)$ ./sistema/public/v1/webapp/$1 [L,R=301] The problem is that when I type in the browser: link He is redirecting and not rewriting to: link VHost...
asked by 13.01.2017 / 20:26
1
answer

Add Parameters in the Wordpress URL

I have a plugin that manages links in Wordpress, with images and texts pretending to be related articles, all are external links. (Taboola Type). I would like to add some parameters at the end of the Links. Ex: Link == > otherite.com...
asked by 05.11.2016 / 14:08
1
answer

How to create a rewrite rule to read a repository from a site subdirectory

I have two folders in my root:    www / repo-sp /   www / repo-rj / My virtual host (www.mysite.local) points to www/repo-sp/ : When typing /rio at the end of the site, it should point to www/repo-rj/ , that is,...
asked by 29.04.2016 / 16:26
1
answer

Problem with regular expression in .htaccess

I have the following URL: http://< site >/restrito/usuarios/pagina/ This page is responsible for displaying a table containing the users registered in the system, can receive numbers as a variable to indicate the page of the table, s...
asked by 22.08.2017 / 00:09
0
answers

Using the .htaccess file with RewriteBase

I use the .htaccess file for writing friendly URLs, but I always have a problem with style sheet and image links when a rewrite is added that adds a level or removes. Type: link points to example.html and link for example.html? example =...
asked by 29.03.2017 / 22:24
0
answers

Help .htaccess URL's Friendly

Hello, I'm developing an online compiler, similar to IdeOne , and would like users to be able to access some of their codes already made on the site so simpler. I currently use a page codAnterior.php for this, I pass it by GET the cod...
asked by 30.10.2016 / 01:23
2
answers

.htaccess wildcard subdomain pointing to directory + hash

Pretty simple to doubt. Redirect by .htaccess containing a subdomain wildcard and hash. From: http://carros.domain.com/visualizar#123 http://casas.domain.com/visualizar#345 http://aps.domain.com/visualizar#567 To: http://domain.com/car...
asked by 11.12.2015 / 07:31
3
answers

How can I simplify URLs for a website?

To access a particular area of the site, I have to indicate one to three parameters in the URL: Normal URL: # aceder a um módulo http://www.meusite.com/index.php?mod=john # aceder a um sub-módulo: http://www.meusite.com/index.php?mod=joh...
asked by 28.12.2013 / 10:37
1
answer

Is it possible to configure a Rewrite Rule in AWS without changing the directories?

I have a small problem since I set up AWS. The fact is that it came a little prepared when it fell into my hand. It is configured to save in the domain.com / site / wordpress , and when trying to access this link only by domain.com.br I end...
asked by 14.11.2015 / 15:41