Questions tagged as 'mod-rewrite'

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

Disregard HTTP authentication for a particular URL

I have an application developed in CakePHP 2 , but I believe that the issue does not have as much involvement with the framework itself, just citing to contextualize. As this private application, basically a webservice for accessing data w...
asked by 03.12.2014 / 15:51
1
answer

URL with fixed and variable parameter

Hello, I'm having difficulty setting my htaccess file, I have a fixed parameter that I manually pass and one that depends on the user when I click and change uf, follow the example RewriteRule ^representantes\/(.*)$ representantes.php?i_page=3...
asked by 08.10.2018 / 16:23
2
answers

I can not capture ROTA without using index in URL

In short, it only works if I put index.php in the URL. It looks like it's in .htaccess, but I do not know where. I would like to know which setting is incorrect or what I could do to find out my error. Data: Debian (9) Apache / 2.4.25 (Debian...
asked by 28.10.2017 / 18:17
0
answers

Error 404 when defining URL in mod_rewrite

Good I'm trying to change the URL's on my site as per the example below of the .htaccess file but I end up going to the localhost's "Object not found, Error 404" page. Here is the code from my .htaccess file: RewriteEngine on RewriteCond...
asked by 01.10.2017 / 01:35
0
answers

Rewrite URL on Wordpress

See if you can help me. I have a URL like this: http://www.site.com.br/portfolio-site/ilha-de-manhattan I would like it to look like this: http://www.site.com.br/ilha-de-manhattan Being manhattan-island is variable, according to...
asked by 06.07.2017 / 15:08
0
answers

.htaccess with friendly url and https

I have a working website that uses friendly URLs, its current code is: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] Now I need to keep the URL friendly and whenever it...
asked by 27.06.2017 / 21:35
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
0
answers

Redirect with .htaccess

I'm using the following mod-rewrite rule RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/([^/]+)/?$ index.php?lang=$1&page=$2 [L,QSA,NC] But now I need to redirect an old page to the new one....
asked by 05.05.2016 / 13:03