Questions tagged as 'mod-rewrite'

1
answer

htaccess rewrite directory url to file.html

Hi, I'm trying to redirect and / or rewrite a set of URLs. Example: misitio.com/categoria1 --> misitio.com/categoria1.html For now I have this, which correctly rewrites this first level: RewriteRule ^categoria1/(\w+)$ $1.html [QSA,L...
asked by 30.01.2016 / 21:52
1
answer

Redirecting 301 using htaccess

I have a problem with some redirections in a site when creating a redirection of a <etiqueta>.html to a <categoria>/ . The problem is that you drag the variable. The <etiqueta> s are a predefined list by...
asked by 02.07.2017 / 21:20
1
answer

.htaccess error when uploading to server

I had previously posted this question how to create friendly URLs without losing css and js e imágenes . In localhost works perfectly without any problem. The problem arose when uploading to the server hostgato...
asked by 08.01.2017 / 03:00
1
answer

Redirect URL terminated with multiple bars to the same URL with a single bar

It turns out I made a redirection to my web so that it redirected the url without a bar to the url with a bar as long as it was not a file. # si no existe un archivo que coincida con la solicitud... RewriteCond %{REQUEST_FILENAME} !-f # y si n...
asked by 05.04.2018 / 21:07
1
answer

Problem redirecting the / slash at the end (/) .htaccess

The url of the product categories end in / But the products themselves do not, so when adding this rule: # si no existe un archivo que coincida con la solicitud... RewriteCond %{REQUEST_FILENAME} !-f # y si no termina con una barra, re...
asked by 02.03.2018 / 16:39
2
answers

Doubt wordpress and friendly links

I've been working on a website for a couple of days and I want all the urls to be friendly, that is, no url is so subcategoria/?type=ejemplo1 , the problem is that I also want all the custom data types and I can not think of it Another way...
asked by 12.05.2016 / 09:40
2
answers

How to remove variables from a URL with htaccess

When accessing URLs such as the following: https://midominio.net/page/61/?variable_hola=1&saludos=5148B409XXXXX677AB547FB3209AA8C8 https://midominio.net/page/20/?variable_hola=1&saludos=5148B409CD818677XX547FB3209AAAC9...
asked by 12.03.2018 / 19:09
1
answer

Rewrite url with mod_rewrite and .htaccess

I have a URL on my website: https://www.miweb.com/componente/nombre/contratar I would like it to not show "name" because the company has changed, but that the URL continues to lead to the same place, because if the contract does not wo...
asked by 13.03.2018 / 09:31
1
answer

Friendly URLs, remove / replace parts of a .htaccess URL

I have this url to access a study on the web: http://miweb.com/index.php?option=com_component&view=estudio&factura=1&id=25977&token=8f8c54a3ce165332fd59f17 I want a URL similar to the following, redirect to the previous one...
asked by 12.03.2018 / 11:49
1
answer

.Htaccess does not allow me to use / in friendly URL

In my .htaccess I have the following: RewriteRule ^topic=([0-9]+)\+autor=([-0-9a-zA-Z/%&]+)\+titulo=(.*)$ /post.php?topic=$1&autor=$2&titulo=$3 [L] which allows me to use a url of this type: http://localhost/topic=8+autor=Jhon...
asked by 09.01.2017 / 02:01