Most voted "htaccess" questions
WARNING: if this tag is appropriate, the question is probably duplicate. Do a search on the site before posting. Still, infrastructure configuration does not belong to the scope of the site. It was experimentally accepted a time, but it is no longer the case. The `.htaccess ` file is a configuration file for the Apache web server, allowing configuration settings to be made at a specific level of the directory, overriding the global settings.
Learn more…651 questions
Sort by count of
-
1
votes1
answer720
viewsHow to take "/" from the end of a server folder?
It’s like this: I have a contact folder on my website, which appears like this: www.meusite.com/contact/ , and how do I get it to appear www.meusite.com/contact ? But it has to be just by folder.…
htaccessasked 10 years, 3 months ago user18359 -
1
votes1
answer486
viewsRedirect url to url:htaccess port
It’s using Node to run my application and I can’t configure htaccess to point to the port I set RewriteEngine on RewriteCond %{HTTP_HOST} ^dashponto.softmarketing.com.br$ [OR] RewriteCond…
-
1
votes1
answer1066
viewsSubdomain redirection at . htaccess
I am trying to do a subdomain redirect on . htaccess as follows: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{HTTP_HOST}…
-
1
votes1
answer614
viewsSwitch HTACCESS to Web.config
Hello, It is possible to convert this HTACCESS code to a Web.config file ? RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\?*$…
-
1
votes1
answer124
viewsProblem in Friendly Url
I have another problem with this line RewriteRule ^([a-zA-Z-0-9-_]+)$ index.php?controller=estabelecimentos&option=tipo&tipo=$1 [L] solved a problem but now I tried to create the same line…
-
1
votes1
answer112
viewsRedirect URL to htaccess file
I need to make sure that when they access my site like this http://www.meusite.com.br/guarulhos redirect (or open) the page http://www.meusite.com.br/guarulhos.asp . I’m trying with htaccess…
-
1
votes0
answers148
viewsHTACCESS crashes correctly on environment change
I have to migrate from a website to a rookie for a dedicated server hosting and my htaccess simply decided to stop responding to the urls by sending the url to the error page. It even mounts the url…
-
1
votes1
answer117
viewsIt is possible to get the Error Number returned by Page
I created a page (following the one taught in this page ) error for Error 404, but this way would have to make an error page for each HTTP Status, then Try to make a gnerica where it was possible to…
-
1
votes0
answers54
viewsRedirect with . htaccess
Would anyone know to assist me in changing a friendly URL. Example: RewriteEngine On RewriteRule ^nome-da-nova-url-([A-Za-z-]+)\.htm$ url.php?url=$1 I would like everything that is on…
-
1
votes1
answer2619
viewsFree access to folders in . htaccess
First of all I want to say that I have already researched here in the stack and none of the examples helped me. However if you think it is duplicated please indicate the solution link. I have…
-
1
votes1
answer476
viewsSession does not start in php via htaccess
I am trying to log in to . htaccess using php_value session.auto_start 1 to avoid line duplications in php codes. But this is not working, informs that is always off?
-
1
votes1
answer203
viewsHow to modify the view path with htaccess
I’m creating a htaccess to redirect the URL, for example: I have the following URL: www.site.com.br/view/html/cliente.html www.site.com.br/view/html/relatorio/demonstrativoDeDebito.html and I’d like…
htaccessasked 9 years, 9 months ago Gabriel Rodrigues 15,969 -
1
votes1
answer2309
viewsLaravel - The requested URL was not found on this server
What I did I made a form that registers the data in the database. Locally it worked perfectly. Problem It simply says it is not finding the URL. It is strange, because the error below says that the…
-
1
votes1
answer112
viewsMultiple Rewriterules for 3rdparty and routes
I have a file .htaccess that adds PATH_INFO in the index.php file (for the route system): RewriteEngine On RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-d RewriteRule…
-
1
votes1
answer122
viewsChange the access url to ip in htacess
I have a system that is all configuring with the address fixed in the code, for example: 'site.producao.com.br', and is in ip 10.109.104.27, but the development server is in the http://site.dev in…
-
1
votes4
answers168
viewsHow to redirect url with htaccess out of the domain?
I own a domain www.dominio.com.br. On a given page, I need to put a link to the customer’s google+ . I’m using: a href="www.google.com" target="_blank" For testing, and what is happening is that…
-
1
votes1
answer243
views.htaccess does not allow entering folders
I have a website in Cakephp and its due htaccess correctly. The problem is because I created an additional domain in the hosting and as usual, it creates a folder in the public_html to put the files…
-
1
votes1
answer332
viewsConfigure Apache2 with PHP 5.6 to use Fuelphp
Well come on, I use Ubuntu, php5.6, apache2, mysql-server, FuelPHP. And for now I’m using the xampp that can run my applications correctly (however I have to start it always and it does not let me…
-
1
votes1
answer794
viewsfriendly urls for various folders
I have these urls, I’m using subfolders, but htaccess will be at the root MEDICAL PASTE when the person logs in to redirect appears in the url ? id=1 without the index laudar.php?id=1…
-
1
votes2
answers225
viewsCSS does not work on pages generated with Errordocument
I’m having a problem when I’m customizing 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,…
-
1
votes2
answers691
viewsSlim Framework Page Not Found / Apache2
I’m using the Slim Framework managed by Composer and when typing into the URL http://localhost/app an error arises 404-Not Found, if I type http://localhost/index.php/app it works. What have I ever…
-
1
votes1
answer298
viewshtaccess help and base url php
I am trying to make url friendly with baseurl class and also with htaccess, but some pages like services and portfolio, are bugged, when I click to see the code appears in the file path a part of…
-
1
votes0
answers32
viewsRewrite URL s using . htaccess
How do I rewrite the following URL s using . htaccess test.com.br/? Section=contact for test.com.br/contact and test.com.br/? Section=vehicle&sub=radio for test.com.br/Vehicle/radio…
-
1
votes2
answers477
viewsInvalid URL server error 500
Whenever having access a URL that does not exist on my site, this error appears The server encountered an Internal error or misconfiguration and was Unable to complete your request. Have any way to…
-
1
votes1
answer553
views.HTACCESS doubts(special mod_expires)
I would like to better understand how this module works, in particular I leave as an example what is in the Root folder of one of the sites I handle: <IfModule mod_expires.c> ExpiresActive On…
-
1
votes2
answers797
viewscase and minuscule differences in the URL
on my page, I have several images and the form that this writing on the path has uppercase and minuscule, for example, <img src="imagens/ImagemSistemaDepartamento.JPG"> needed that somehow…
-
1
votes1
answer67
viewsEscape "/" with htaccess and/or php
I have a little MVC made by me. With urls of this type index.php?route=admin/produto/adicionar, but I wanted to withdraw index.php?route=, I already got some lines .htaccess stay that way…
-
1
votes1
answer87
viewsHow to use friendly urls on a php system?
I’m working on a website, first site I do without Wordpress and would like your help to implement friendly urls. I don’t have much knowledge on friendly and .htaccess but I’m trying to learn. My…
-
1
votes3
answers1452
viewsURL problem with Toolbar /
In Laravel it is very common to use friendly URL and also very easy to use. The system is already ready for this. However, I have a problem that so far has not mattered. And now I want to know why.…
-
1
votes1
answer229
views.htaccess directing everything from the URL to index.php
I took a panel to do maintenance and developed a new panel on codeigniter. After created, I created a folder on the server called Adm and played all the files there. The problem is that the root…
-
1
votes1
answer40
viewsHow do I take information from a website and distribute it in a view?
I made a function that receives data from the database as parameters passed by $_GET[] ... How can I use this information elsewhere in my system? function db_tratcontent(){ $slug =…
-
1
votes1
answer125
viewsError 500 while using . htaccess
I rewrote a rule on .htaccess to remove the extension .php of my page dashboard.php but the WAMP get back to me: error 500…
-
1
votes1
answer47
viewsLink misdirecting with htacess
I am using the following structure in addresses/links to url friendly in fixed of my page: RewriteRule ^teste(.*)$ teste.php So, my address is as follows:: www.site.com/teste It turns out that if…
-
1
votes1
answer716
viewsEscoder . php extension through . htaccess file
I’m using the following code on a hostgator web server, but I can’t hide the extension .php. How to solve this? RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond…
-
1
votes1
answer113
viewsBlocking LINK with HTACCESS
Do I need to lock a link just inside a server, how would I use HTACCESS? If there is any way. Thank you.
-
1
votes0
answers580
viewsRemove "/" bar from end of url with htaccess
I wish my Url worked as much with "/" at the end as without it via htacces did so URL FRIENDLIES #aqui ignoramos o uso de barra no final RewriteRule ^home$ index.php [NC,L] RewriteRule…
-
1
votes1
answer501
viewsBy removing the index.php prefix in wampserver windows, is it possible?
It is possible to remove the prefix index.php in my local projects using wampserver?…
-
1
votes2
answers953
viewsPoint to different directory in . htaccess
Does anyone know if there is any way with the RewriteRule, can point to a path, which is in folders behind where I have mine htaccess. For example RewriteRule ^cena.js$…
-
1
votes1
answer26
views.htaccess detect string after Slash
I’m not getting htaccess to detect string or characters after / for example. I have this: foo.foo/xx/ and I wanted when this happened foo.foo/xx/whatever o . htaccess internally executes a php code…
-
1
votes0
answers134
viewsError 418 Wordpress, SSL Redirect and W3 plugin
I bought an SSL certificate for my blog and then went to edit the .htaccess to include 301 redirect. I received as a reply that there was being too many redirects and then I checked the file and…
-
1
votes0
answers91
viewsHow to make Friendly Urls instagram style
I made a FRIENDLY URL only it’s like this: I wanted the link to be like this: www.site.com/usuario1/, I mean, when the guy puts www.site.com/usuario1 it was redirected to the www.site.com/usuario1/.…
-
1
votes0
answers206
viewsRename index.php with . htaccess
Guys, I wanted to access index.php from any parameter in the url, from . htaccess, like this: site.com/sistema1 site.com/sistema2 ... and automatically go to site.com/index.php to then treat certain…
-
1
votes0
answers60
viewsRedirecting without www
How I proceed in the following situation: My Urls were ancient from blogger, and possessed the WWW. I went to the Wordpress and removed the WWW. Today I got a message from Google WEBMASTER: Increase…
-
1
votes1
answer300
viewsHow to release a specific folder through the use of htaccess?
I need to release inside lib only the folder Barcode. The rest is inaccessible. How can I do that? What I currently have is: Order Deny, allow Deny from all…
-
1
votes1
answer525
viewsUser friendly URL with dynamic product name and id
I am working with site friendly Urls developed in PHP. I created the file . htaccess and did the appropriate redirects according to my needs. For example, the page named.com/contact.php is now…
-
1
votes0
answers56
viewsRedirect with . htaccess
I am using the following mod-rewrite rule RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/([^/]+)/?$ index.php?lang=$1&page=$2 [L,QSA,NC] But now I…
-
1
votes0
answers133
viewsHtaccess-friendly url handling
I have the following code . htacess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^shop\.meusite\.com.br$ RewriteCond %{REQUEST_URI} !^/shop/$…
htaccessasked 8 years, 10 months ago Leo Ferreira -
1
votes1
answer86
viewsHow to create a rewrite rule to read a repository from a website subdirectory
I have two folders in my root: www/Repo-sp/ www/Repo-Rj/ My virtual host (www.meusite.local) points to www/repo-sp/: When typing /rio at the end of the site, it should point to www/repo-rj/, that is…
-
1
votes2
answers177
viewsFriendly URL in an automated way with all pages
I suffer from this friendly URL business, as I could do for a simple code or any code on. htaccess to make the url friendly in an automated way without me having to write all this: <IfModule…
-
1
votes0
answers54
viewsHow can I avoid misuse of my web server?
example I have the domain http://marcaregistradanb.com and on this site I have way to 2 files one html and another jpg…