Questions tagged as 'htaccess'

1
answer

Restrict access by htaccess

I have a dedicated server separate from my site hosting, some content like image, videos, texts and etc. will be pulled from that dedicated, the problem is that I would like to restrict access to these files directly by URL, and make them access...
asked by 30.10.2016 / 15:51
2
answers

What is the purpose of Options MultiViews?

I saw a code .htaccess in the Laravel Framework, whose code snippet had this: <IfModule mod_negotiation.c> Options -MultiViews </IfModule> What would this -MultiViews ? What does it do?     
asked by 08.02.2017 / 14:08
2
answers

Point to different directory in .htaccess

Does anyone know if there is any way to RewriteRule , be able to point to a path, which is in folders behind where I have my htaccess . For example RewriteRule ^cena.js$ ../../../pasta/pasta2/file.php [L] This code does not w...
asked by 15.02.2016 / 13:51
2
answers

URL Automatically friendly with all pages

I suffer from this friendly URL business, as I could do for a simple code or any code in .htaccess to make the url friendly in an automatic way without having to write all this: <IfModule mod_rewrite.c> RewriteEngine On RewriteCo...
asked by 21.05.2016 / 05:18
1
answer

Error 500 when using .htaccess

I've rewritten a rule in .htaccess to remove the .php extension from my dashboard.php page but WAMP returns me:    Error 500     
asked by 18.12.2015 / 11:57
1
answer

Change HTACCESS to Web.config

Hello, Is it possible to convert this HTACCESS code to a Web.config file? RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\?*$ index.php?route=$1 [L,QSA]     
asked by 26.01.2015 / 13:39
2
answers

CSS does not work on pages generated with ErrorDocument

I'm having a problem when I'm going to customize ERROR 404. I put the following code in the .htaccess file: ErrorDocument 404 /erro404.html And I created a custom page error404.html. The page is onpage, you do not have a link to other pages...
asked by 22.08.2015 / 00:50
1
answer

Friendly URL getting value for PHP

My question is in this URL : site.com/embed.php?id=a48sa4d2a3s4d65a1s5d6a1sd56 I get this value for $_GET['id'] . How can I turn into a beautiful and organized URL ? Example: site.com/embed/a48sa4d2a3s4d65a1s5d6a1sd...
asked by 10.12.2018 / 02:34
1
answer

How to make URL-friendly with .htaccess with URL Variable

Example I have a link like this: link You have access like this: link So keeping the URL clean, I know you can do it, but I have no idea! My current .htaccess: # override max php upload settings. Might not work on...
asked by 17.06.2018 / 01:13
2
answers

Block access to subfolders in the URL (WordPress) from the 403 forbidden

I hope my question is clear: I have already seen images uploaded by Amazon CloudFront that have their "differentiated" URL for images and blocks all subfolders of the path if the user tries to access. I explain. URL displaying the image:...
asked by 24.03.2018 / 18:28