Questions tagged as 'htaccess'

0
answers

How to block and unbind a city / state IPs range in .htaccess?

I wanted to temporarily block some states in Brazil from accessing my site, as I can do this through htaccess. In fact, is it harder to figure out this range of IPs for each state or city? Thank you in advance.     
asked by 19.01.2018 / 13:49
1
answer

Htaccess - Rewrite URL with .htaccess within a subdirectory

I'm trying to rewrite a URL where the .htaccess file is inside a subdirectory. Current URL: localhost / Development / Projects / redirect / index.php URL I'd like to use: localhost / redirect / index.php My intention is to hide the path...
asked by 11.01.2018 / 23:12
1
answer

Send parameters via GET in a friendly URL

I have a page that friendly URL is something like this: link And the real URL looks like this: link I'm using IIS to develop, so I set up the friendly URLs in web.config. When accessing this page: link It works correctly, the frie...
asked by 08.01.2018 / 20:22
0
answers

Htaccess - Rewrite CSS with 2 .htaccess files

I am trying to rewrite the path of my css, but due to the use of 2 .htaccess files only one of my URLs works. My structure is as follows: htdocs (root) index.html .htaccess (1) Development Projects redirect index.php .htacc...
asked by 12.01.2018 / 22:50
1
answer

Creating URL Friendly I do not know how to do

I have a website and in index.php and where it is registered and logged in. Watch some video lessons but all of them make the explanation using the index as an example so you can get the url and work with php RewriteEngine on RewriteCond %{SCR...
asked by 25.12.2017 / 20:49
0
answers

I can not get url in php using htaccess

This is the code I'm using, but it does not send the url to the shoes.php file, but I put the index.php file and it sends. How to solve this? That is how to send the URL to the shoes.php file? RewriteEngine on RewriteCond %{SCRIPT_FILENAME}...
asked by 24.12.2017 / 16:01
0
answers

.htaccess causing "Excess Redirection"

I have the following .htaccess: RewriteEngine on RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ RewriteRule (.*) https://www.%1/$1 [NE,L,R] RewriteCond %{THE_REQUEST} /([^.]+)\.ht...
asked by 04.12.2017 / 13:39
0
answers

Remove # from URL without .htaccess

Good afternoon, I've been looking for solutions around a long time ago and I still have not found one that applies to my situation. I made a menu with the following code: <nav class="menu "role="navigation"> <a href="#" onclick="...
asked by 06.11.2017 / 19:40
1
answer

Redirect a url into a folder, without displaying a name

I have a local url: link and link I would like htaccess to remove / view /, eg: link or link     
asked by 24.10.2017 / 16:34
1
answer

htaccess friendly URL does not work in Plesk?

I created the file .htaccess and included it in the root of my site with the following code: RewriteEngine On RewriteRule ^([a-zA-Z0-9_-]+)$ teste.php?u=$1 RewriteRule ^([a-zA-Z0-9_-]+)/$ teste.php?u=$1 But it's being ignored. When I...
asked by 10.10.2017 / 16:22