Questions tagged as 'url-amigavel'

1
answer

doubts about clean URL without mod_rewrite

I have a small project to do in the next few days and my client has a cheap, shared hosting that does not allow me to change apache settings and is not mod_rewrite enabled. I would like to find another way to keep URLs friendly and I'm thinking...
asked by 09.12.2015 / 15:44
1
answer

Redirect - Friendly URL .HTACCESS

I created a redirect from a domain to a subfolder, see how it went: # Redirect from www to non-www location RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^www.meusite.com.br [NC] RewriteRule ^(.*)$ https://www.meusite.com.br/loja/$1...
asked by 15.09.2015 / 16:42
1
answer

remove the php extension and force any page as https via htaccess

Personal I'm trying to make a rule in .htaccess to force https on all pages and hide the .php extension. It is hosted on kinghost and I already have the certificate. I have the separate codes but I could not do the two things together where ever...
asked by 22.08.2017 / 02:27
1
answer

Split into AMIGAVEL URL without creating folder

Hello, I'm creating a website and starting to work with friendly URls, with this structure I can perform the procedure normally and retrieve the values. Now I would like to create divisions in the URL, for example: I have today that works:...
asked by 10.07.2017 / 21:49
0
answers

Problems with creating friendly URLs

I researched a lot about friendly URLs. I've put some instructions to handle some pages - some static and some dynamic, however, still not working properly. Follow below: The home page displays a listing of the posts saved to the database. Th...
asked by 02.01.2019 / 19:13
1
answer

.htaccess select file and not the folder

I have in the root of the site the .html files "index, services, gallery and contact". I also have a folder that is called "services". I'm trying to use this code to leave url's friendly: RewriteEngine On RewriteCond %{REQUEST_FILENAME...
asked by 10.12.2018 / 23:59
2
answers

Use .htacess to change site to another language

Good afternoon, I have a site that needs to have the English version, so I thought I had a folder / eng / and just change that url, but the site in Portuguese already uses htacess to have a friendly url that inside the normal root pull the pa...
asked by 05.11.2018 / 18:13
0
answers

Control access on two URLs with .htaccess

I have the login folder of my site www.meusite.com.br/login and that. after login. goes to www.meusite.com.br/painel . The issue is that I need to apply a rule to login and another rule for the panel, but one subscribes to the o...
asked by 23.03.2018 / 21:55
1
answer

How to avoid File Inclusion failure?

Personal using a vulnerability search tool, vul File Inclusion has been found, which is in the following codes: $url = (isset($_GET['url'])) ? htmlentities(strip_tags($_GET['url'])) : ''; $parametros = explode('/', $url); $paginas_permitidas =...
asked by 20.06.2016 / 20:12
0
answers

How to ignore a subdirectory that is not being represented in the current address?

Note: The links are fictitious, but they represent my problem. I have a project made in prestashop that in the production environment, is inside a sub directory: www.site.com/rio/index But in my development environment I'm using it,...
asked by 30.05.2016 / 15:32