Questions tagged as 'mod-rewrite'

1
answer

Redirect subdomain in .htaccess and use URL to redirect to subdirectory

I have a site, say http://es.misitio.com , and I need to use .htaccess to redirect the URL (using the subdomain to add it as a subdirectory) to http://www.misitio.com/es . The same for http://en.misitio.com => http://www.mi...
asked by 19.10.2018 / 06:42
1
answer

htaccess does not work with Virtual host with Xampp

I have an error with the local server, it does not work with the .htaccess friendly urls, before I used mamp pro and did not ask for anything, now in ubuntu 16.04 I have mounted a server with XAMPP, for the friendly urls I had to mount VirtualHo...
asked by 02.09.2016 / 03:02
1
answer

.htaccess rewrite - filename.html a /? c = filename

SPANISH: Hello, I need it to work with all the html links (except with index), I tried using .htaccess but I had no luck. For example ... to change this link of: link to link Also if I go directly to link , it should be a mirror of l...
asked by 12.11.2018 / 06:41
0
answers

Problem building friendly urls with .htaccess on page made with react-js when navigating with https protocol

I have a site that uses mod_rewrite to make the url friendly, when requesting a page for http protocol if I take the rules that I have in the .htaccess, but if I make a request for https, it does not take them well my .htaccess would b...
asked by 14.08.2018 / 19:03
0
answers

mod_rewrite with proxy weblogic plugin

I am configuring Apache to connect the weblogic application server with apache, which already works but it needs that the urls coming from the weblogic bakend that are: link be link The reason is that Angular's fronend client...
asked by 26.02.2018 / 14:04
0
answers

| htaccess | Codeigniter select language |

I use codeigniter as a framework, it is not a web page created by me, what I would like to know, is if it is possible to redirect a person to your language when you enter the website. The issue is that to change the language, the website uses...
asked by 08.12.2017 / 13:55
0
answers

Internal Server Error 500 in Ajax

I have a website hosted on Digital Ocean that runs on an Ubuntu under Lamp with PHP & MySQL My problem is that when I want to pass data through APIRest it gives me an internal error. This is my code function ajaxPost(url, encodedata, su...
asked by 17.11.2017 / 14:48
0
answers

Problems with configuring mod_rewrite for OJS

I have an installation of OJS, with the configuration that allows to eliminate the index.php of the address. My Apachees is 2.4 and my htaccess is as follows: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQU...
asked by 31.07.2017 / 17:34
2
answers

Redirect 301 drag the variable

I am creating some 301 redirects in one of my sites, to eliminate indexed URLs and leave it a little more optimized. Well, if I redirect between tags for example: redirect 301 /videos/coche-electrico.html https://www.dominio.com/videos/coch...
asked by 05.06.2017 / 18:02