Questions tagged as 'htaccess'

1
answer

Redirecting htaccess if extension and folder do not match

I want to have it redirect to my domain if it is not a .php file or certain folders. The php I got: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule \.(php)$ - [L] RewriteRule (.*) https://www.exemplo.com/$1 [R=301,L]     
asked by 21.11.2018 / 20:39
1
answer

Error 500 when using rewrite with the same file name (/ tag / does not go to /tags.php)

Recently I migrated my server to Ubuntu 14.04 with PHP 5.5.9 and Apache / 2.4.7, but rewrite that has string with filename simply does not work. Error 500 RewriteRule ^tag/?(.*)/?$ /tags.php?tag=$1 [L] It works RewriteRule ^tag...
asked by 05.06.2014 / 21:05
1
answer

Get domain name dynamically in htaccess file

I have a .htaccess file with several instructions. I would like to make it more dynamic, that is, to make it more optimized for other sites without having to edit it. Lines such as those mentioned below refer to the domain name, would like it...
asked by 10.11.2018 / 17:04
1
answer

Direct via .htaccess a query string

I have a system where there will be multiple users. Each user will have their own subdomain. Ex.: usuario1.sistema.com.br usuario2.sistema.com.br For this I created the subdirectories and in each of them I created a .htaccess by redirect...
asked by 21.08.2018 / 05:10
1
answer

CSS does not load in mobile version when installing SSL certificate free

I installed a SSL certificate on a site. The certificate is running normal. The problem is that in the mobile version of the site CSS is not loaded, on the other hand, in the desktop version the CSS is loaded normally. I suspect the problem is...
asked by 20.08.2018 / 22:48
1
answer

Friendly URL on specific page

I have a client project in production (locaweb then n has cpanel: |) and I have a news page and I need to leave it with a friendly URL, page noticia.php has the following code: How do I leave a page and need to leave it with a friendly URL....
asked by 04.09.2018 / 19:15
2
answers

Redirect parameters .htaccess [closed]

I would like to know how to redirect a url with parameters in .htaccess . I have a URL that can receive several parameters and I want to redirect it to another page with these parameters. The page is wp-login.php , I have to redir...
asked by 28.04.2016 / 02:39
2
answers

System with friendly URL get return in query string

I have a problem with the PayPal return url, my system has the concept of friendly URL for example: http://outros.local/vendas/carrinhos/finalizada But with PayPal's return the URL is getting like this: http://outros.local/vendas/carrinho...
asked by 24.08.2016 / 01:17
1
answer

How to redirect the old domain to the new one? [duplicate]

I would like to redirect the old domain to the new one, in the current code looping is occurring infinite. Follow my code: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_...
asked by 29.02.2016 / 22:56
1
answer

Friendly URL with .htaccess

I would like to leave my url that is like this: link to stay like this link You can leave someone to make a .htaccess file for me     
asked by 26.03.2018 / 16:47