Questions tagged as 'htaccess'

1
answer

Problem URLs Wordpress Htaccess

I have a project that has an institutional site (main domain example: client.com.br) and a blog with Worpdress in subdomain (example: blog.cliente.com.br). I have an htaccess in the root directory (institutional site) controlling my friendly...
asked by 01.12.2017 / 12:53
1
answer

Url redirection by company

I am creating multi tenacy system, I have access page for companies link the views, what I like and that the user type link already go straight into your system keeping the company1 as a mask in the url and link and so on     
asked by 18.01.2018 / 17:53
1
answer

How to load CSS when using Friendly URL in Apache?

My CSS does not load the content when I started using the friendly URL. Try to use the tag <base href="localhost/guiacomercial/" /> and within .htaccess RewriteBase / Because the load stays like this anyway:...
asked by 29.11.2017 / 19:25
2
answers

How to redirect in the first access another page instead of the index?

I think it's easier to understand like this: When I enter my domain:    www.site.com.br Usually go to index.php But I do not want it to go to index and yes to inicio.php How would an htacess rule be for this?     
asked by 17.07.2017 / 22:29
1
answer

Problem using Url Friendly

Where am I going wrong in this .htaccess? RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] The site that I developed works normally on localhost, but now that I've uploaded...
asked by 06.07.2017 / 19:38
1
answer

Object not found - Error 404 in htaccess

In a site that I develop, when I write a link that does not exist, it gives me an error as follows: Iwantyoutowritealinkthatdoesnotreallyexist,displaya404errorpagewithoutchangingthelinkinsteadofdisplayingthis"Object not found" warning messag...
asked by 21.08.2017 / 03:15
1
answer

Domain redirection in .htaccess file

I have a domain like this: https://www.dominio.com , which always has to access this way. So I need to do some redirects. These are: From: (http) www.dominio.com.br (http) www.dominio.com https://www.dominio.com.br To: htt...
asked by 06.06.2017 / 14:06
2
answers

How to use .htaccess with 2 arguments

I searched the internet, found some examples, but I did not understand it very well, for example, I need it when I access site.com/stream/nome it executes the file stream.php , but inside the file stream.php I can get the val...
asked by 06.05.2017 / 00:54
1
answer

How to redirect only one directory to http instead of https?

I have a magento store that is set up to use https on the front. However I need a directory to force the use of http. How can I do this? I tried to use the following in htaccess: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} folder R...
asked by 24.05.2017 / 01:50
1
answer

Force redirect to HTTPS environment [duplicate]

How to force redirect to the HTTPS-based environment with HTACCESS? I need the code to be adapted to what I already have: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?url...
asked by 04.01.2017 / 14:54