Questions tagged as 'htaccess'

2
answers

Put bar at the end of the url with .htaccess

I need to add a forward slash (/) to the end of the url using .htaccess. My current .htaccess looks like this: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^dominio.com.br [NC] RewriteRule...
asked by 19.02.2016 / 15:16
1
answer

Treat request redirected by Htaccess

I'm studying routing, trying to (re) create a routing solution of mine. I have always used the following .htaccess to redirect my requests: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rewr...
asked by 20.11.2015 / 17:25
1
answer

Redirect all media requests (css, js and images) with htaccess

I am building an MVC application and I was having some problems with the path of the css, js and images files in the html ... I was given a solution to use the <base> tag to set the path that all html files would follow, ex: &l...
asked by 25.12.2015 / 04:22
1
answer

How to make every request be directed to a subfolder? (HTACCESS)

I have tried several tutorials and none worked beyond index.php . I use LOCALHOST and I want every request, of any kind, example: localhost:8080/teste.php localhost:8080/imagens/algo.jpg localhost:8080/teste2.php?querystring=ok...
asked by 26.06.2015 / 21:09
1
answer

Ajax returns error after modifying htaccess

I've modified the .htaccess with a rule for the url to be passed as a GET parameter and I treat everything in index.php : Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAM...
asked by 27.02.2014 / 23:27
1
answer

URL friendly with Boilerplate

I'm using Boilerplate to have a base template for use. But I'm trying to use friendly URLs in it, but I can not .. I've tried several codes, the latest is this: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f Rew...
asked by 22.03.2014 / 18:06
1
answer

Extend PHP session using .htaccess

How to extend a session in PHP using .htaccess? I used this code below: php_value session.cookie_lifetime 28800 php_value session.cache_expire 28800 php_value session.gc_maxlifetime 28800 But I believe it did not work, so, how can I chec...
asked by 30.10.2017 / 19:32
1
answer

Additional GET parameters does not work with htaccess [duplicate]

I'm developing a dynamic website and dynamic url pages, my problem is as follows: When I put in the link the id to view the details of the property <a href="/imovel?id<echo $row['id_imovel']>"> , the property.php file does...
asked by 03.08.2015 / 21:06
2
answers

How to force HTTP access (Not secure)

When you visit link or link , the below: IdonothaveSSLcertificateandIdonotneeditatthattime.WhentryingtoforceredirecttoHTTP,Idonotgettheexpectedresult.InanumberofwaysItriedtoforceredirectvia.htaccessanditiscurrentlyasfollows:#Elgghtaccessd...
asked by 17.08.2015 / 21:14
1
answer

Why is the style sheet not loading?

I'm trying to use urls amigáveis but I'm having some problems in the learning process. The problem now is that the page does not return the page styles. Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f Rewri...
asked by 15.11.2015 / 15:27