Questions tagged as 'htaccess'

1
answer

How to map all requests to a single file?

I need to map all requests arriving at the server as follows: exemplo.com/joao => exemplo.com/index.pl?u=joao exemplo.com/joao/ => exemplo.com/index.pl?u=joao My /var/www/.htaccess file is so far: RewriteEngine On Rewrit...
asked by 02.06.2015 / 19:45
2
answers

Release access in the WordPress directory to print images? .htaccess

I have a problem with WordPress, I'm uploading the images to a specific directory and I need them to be viewed directly through the URL. From the root of the portal there is a directory called server and inside it has a directory called image...
asked by 16.04.2014 / 23:41
1
answer

Resolved - Rewrite HTTP to HTTPS with Let's Encrypt [duplicate]

I have the .htaccess file with the following content: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?path=$1 [QSA,L] When I load...
asked by 31.10.2018 / 13:25
1
answer

How to redirect site to another folder at the public_html level using htaccess

I have a site created and the files are in the public_html folder. We created a new one in the 2018 folder that is at the same hierarchical level as public_html How can I do when to access the domain.com, it accesses the folder 2018 and not t...
asked by 18.12.2018 / 10:58
3
answers

Friendly Url for MVC

I'm trying to create a .htaccess to make the site urls friendly, the pageview will always be in the index as I'm using MVC. I'm following a pattern with the action parameter in the url to indicate which class and method to execute. Example si...
asked by 11.03.2016 / 22:04
1
answer

How to arrange a friendly URL?

I made the migration from my Joomla site to another server but it is only running Home, the internal pages give 404 error. I already enabled / disabled the friendly URL option in Joomla, I saw the htaccess too and nothing worked. I'm using the d...
asked by 25.04.2014 / 20:50
1
answer

How to block access to a page with htaccess?

I need to block access to a Page (URL) with htaccess, for example: link I want to block via htaccess     
asked by 02.07.2018 / 15:10
1
answer

Help in creating the .htaccess file

Friends, good afternoon. I'm trying to create a nice .htaccess days, but we're having some difficulties. Here are examples of what I need, remembering that everything needs to be on the same URL. 1) Whenever the user accesses the web site...
asked by 28.07.2015 / 14:36
1
answer

How to restrict GET requests from other sites?

I'm trying to prevent other sites from copying my download links, but they're not conventional (they are not formatted at the end), so I can not block through Apache's mod_rewrite. So I decided to block GET requests from other sites, but the...
asked by 19.01.2018 / 04:08
1
answer

URL redirection while retaining the address

I am using my server to host other sites because my hosting plan allows, however, I would like, for example, when I access the www.meusite.com.br/outrosite directory, the redirected domain appears in the address bar, such as www.outros...
asked by 20.10.2014 / 19:59