Questions tagged as 'mod-rewrite'

0
answers

Nginx Rewrite router

Good morning guys, Is there any way I can do the rules below without having to always repeat the root folder, in this case without needing to see all of the words " rewrite ^ / pw / ... / pw / ... last ; " location /pw { rewrite ^/pw/st...
asked by 06.04.2016 / 14:05
1
answer

Multiples RewriteRules for 3rdparty and routes

I have a .htaccess file that adds PATH_INFO in the index.php file (to the routing system): RewriteEngine On RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-d RewriteRule ^(?!index\.php(/.*|$))([a-zA...
asked by 17.05.2015 / 04:01
1
answer

Htaccess - Redirect all requests to a single file every time

I'm trying to use a .htaccess file to redirect all requests to a single file, but I'm facing some problems. My .htaccess looks like this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ....
asked by 18.08.2018 / 04:18
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

Access /index.php as / index (without the ".php")

Using regular expressions, I can check index.html pages as index but not index.php pages as index. My .htaccess. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}...
asked by 03.01.2016 / 16:48
2
answers

URL rewrite with parameter to another .htaccess site

I would like to write a rule in .htaccess with RewriteRule so that when someone enters the old site, it is redirected to the new site by keeping the requested parameter on the old site. Old site: velhosite.com.br/?people=alg...
asked by 16.11.2015 / 12:27
2
answers

Rewrite - How to redirect everything without index.php

I would like to redirect all requests from my Apache server to the test.php file and remove the index.php file from the root_folder (public_html or DocumentRoot). I have the following code: RewriteEngine On RewriteBase / RewriteRule . test....
asked by 28.09.2015 / 03:08
1
answer

mod_rewrite does not work on Ubuntu 16.04

I have a VPS with Ubuntu 16.04 but I am not able to make the mod_rewrite work. When I get the command sudo a2enmod rewrite , I get the following response:    "Module rewrite already enabled" But when I run phpinfo() , t...
asked by 06.11.2018 / 01:40
0
answers

NGINX - ERR_TOO_MANY_REDIRECTS when rewriting htaccess rules

I'm trying to convert some htaccess rules to NGINX and I'm getting ERR_TOO_MANY_REDIRECTS. The htaccess code is link Options +FollowSymLinks -MultiViews # Secuirty Control <FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|tpl)$">...
asked by 27.10.2018 / 22:19
0
answers

Differentiate content and listing in friendly URL

I have a question about how to separate the querystrings for content pages (post) and listing. Today it is like this: Content page Domain.com / page.asp? Content = 123 Page for content listing Domain.com / page.asp? Section = Section & cat = Cat...
asked by 15.10.2018 / 19:47