Questions tagged as 'htaccess'

0
answers

Redirect with .htaccess

Someone would know how to help me change a friendly URL. Example: RewriteEngine On RewriteRule ^nome-da-nova-url-([A-Za-z-]+)\.htm$ url.php?url=$1 I would like everything in www.mysite.com/nomedaurl.htm to go to www.mysite.com/nome-new...
asked by 20.05.2015 / 02:15
1
answer

Redirect url to url: htaccess port

I'm using node to run my application and I can not configure htaccess to point to port that I set RewriteEngine on RewriteCond %{HTTP_HOST} ^dashponto.softmarketing.com.br$ [OR] RewriteCond %{HTTP_HOST} ^dashponto.softmarketing.com.br$ Rewrite...
asked by 29.12.2014 / 14:39
2
answers

Access-Control-Allow-Origin access control on server side Apache PHP

I do not understand much of PHP and I'm trying to create an application to automatically register products from my virtual store directly on eBay. The ad data is captured with JavaScript and sent to the ML API via $.ajax , what h...
asked by 14.06.2018 / 21:12
2
answers

My site is not redirected to https [duplicate]

I'm trying to make my site redirect to htpss, but I'm not getting it. Below is the code in htaccess RewriteEngine On RewriteCond %{HTTPS} !on [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteRule ^ https://www.lotericapremiada.com.br%{REQ...
asked by 31.01.2018 / 19:32
1
answer

How do I define a subfolder as the root of an application with HTACCESS?

I have a certain PHP application written with the Silex framework. I built the structure in a way where only the public folder would be the folder where I would point Apache to read it. My structure is more or less this: projeto/...
asked by 08.02.2017 / 14:02
1
answer

How to release a specific folder through the use of htaccess? [duplicate]

I need to release lib only the barcode folder. The rest is inaccessible. How can I do this? What I currently have is: Order deny, allow Deny from all     
asked by 18.04.2016 / 15:07
2
answers

Dynamic url with php

I have this url on my site categorias.php?id_categoria=1 I want to make a rule to stay produtos/nome-categoria Being the category name I'm already pulling the bank with php My .htacsess is like this with a rule already made for the...
asked by 29.06.2017 / 15:29
2
answers

friendly url rewrite

Hello, how are you? I need the url of my homepage to look like this: link url of the home page is appearing like this: link A second page appears as the initial page: link I would like the second page to look like this: link ie...
asked by 26.02.2018 / 19:28
1
answer

Automatic friendly URL in PHP [duplicate]

I want to develop a site type migre.me , it does not use GET visible method, and its URL looks like this: http://migre.me/upR3N I want to make a system to save the URL in MySQL, and create a URL of this type, without using...
asked by 22.07.2016 / 18:16
2
answers

.htaccess automatically change .php and .html extensions?

I'm using my htaccess like this # Hide .html or .php extension ## External Redirect RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC] RewriteRule ^ %1 [R,NC] ## ## Internal Redirect RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^...
asked by 23.10.2017 / 18:43