Most voted "rewrite-url" questions
A "URL rewriting engine" is software that modifies the appearance of a web URL (rewrite URL). Rewritten Urls are used to provide shorter and more relevant links for the future of web pages, using user routes from obsolete Urls for replacements, or to simplify the URL format for easier human reading.
Learn more…49 questions
Sort by count of
- 
		47 votes3 answers1402 viewsHow can I simplify Urls for a website?To access a particular area of the site, I have to indicate one to three parameters in the URL: Normal URL: # aceder a um módulo http://www.meusite.com/index.php?mod=john # aceder a um sub-módulo:… 
- 
		12 votes1 answer1432 viewsAsp.net MVC adding application name to URLI have a domain on a shared server and within it I have some subfolders that are set as applications on IIS 7. Within the main domain I created subdomains that redirect to applications/folders. Ex:… 
- 
		11 votes5 answers83787 viewsPassing variables through the URL using friendly URL via GETI am trying to mess with friendly URL. Before, to pass the variables I used for example: pagina.php?variavel=valordavariavel by clicking on this link I could use a echo and display the variable. I… 
- 
		10 votes3 answers632 viewsCan apache rewrite to external url?I have an application running on local. At the same time I have the application that is already running in production - namely a social network. I have photos of many users in this system that is in… 
- 
		8 votes1 answer10339 viewsHow does Rewritebase work on . htaccess?I’ve always used the .htaccess for url's amigáveis no php, but recently when passing to a company X server, the . htaccess that always worked didn’t work on that server.... After researching I found… 
- 
		6 votes1 answer1322 viewsHow to configure . htaccess to accept a hyphen in the URL?I’m customizing the Urls on my site, but the .htaccess does not accept hyphens Urls, for example: postagem/1/criando-efeito-fadeout-com-javascript When I write the title without the hyphens it… 
- 
		5 votes1 answer776 viewsHow to keep the url fixed?I’m using the mod_rewrite to rewrite the url, but I would like to leave it fixed, example: www.meusite.com.br/index.html www.meusite.com.br/produtos.html www.meusite.com.br/contato.html Ficar… 
- 
		5 votes1 answer1177 viewsSend and pick up GET by AMIGAVEL URLI have this tag on the index <a href="projeto">Projeto</a> Who sends me to this page localhost/project.php That I’m leaving like this localhost/project With the RewriteEngine on… 
- 
		4 votes2 answers252 viewsInterpret and direct with URL that after domain contains a hashI am creating a rule for interpreting addresses that after the domain begin with # followed by numbers or followed by letters whose rule should only be read if there is no file or directory matching… 
- 
		4 votes1 answer564 viewshow to hide subfolders from url through . htacessHello! how to change a url through htacess. wanted this url: http://localhost/site/product/view/Mi00OTI/golbolaver remain so: http://localhost/site/view/Mi00OTI/golbolaver… 
- 
		4 votes1 answer756 viewsRemove "public" directory from Laravel 5 by IIS web.configI have an IIS server where a site built in Laravel 5.3 will be hosted and I need to remove the public folder from the url. NOTE: I am aware that if I enter the IIS manager and change the destination… 
- 
		3 votes1 answer366 viewsError in final bar with mod_rewrite and mod_jkI have the following structure on my server. Apache HTTPD (port 80) Tomcat (gate 8080) I used the mod_jk to make the connection between apache and Tomcat and this is working perfectly. I created a… 
- 
		3 votes2 answers3046 viewsDots and accents in mod_rewrite UrlsI noticed that many systems that use mod_rewrite (or equivalent) usually do not support Urls with accents, usually they replace the characters as dot (dot) by hyphen (-) and accents for their… 
- 
		3 votes1 answer1078 viewsHow to get PATH_INFO on Nginx when we use rewrite (friendly url)?I created a .htaccess in the briefcase /var/www/project/: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1… 
- 
		3 votes2 answers1909 viewsBar at the end of url with . htaccessI need to add a bar (/) to the end of the url using . htaccess. My current . htaccess is like this: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST}… 
- 
		2 votes1 answer1714 viewsWordpress with friendly URL - Apache error - How to resolve?I’m having problems with Wordpress with friendly URL. It just doesn’t work even using the file . htaccess suggested by Wordpress support site. cat .htaccess # BEGIN WordPress <IfModule… 
- 
		2 votes2 answers425 viewsRedirect or deny direct access to public folderI’m using htaccess to access the folders css, js, images who are in /public directly: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^(css|js|images)/(.*)$ public/$1/$2… 
- 
		2 votes1 answer31 viewsUrlrewrite for photo name - WebToday have the urls of my website images as: /images/tb/1280077_894mvzfxoojqb.jpg I would like to be able to rename this to the generated HTML Apartamento_em_SaoPaulo.jpg or something similar.… 
- 
		2 votes2 answers279 views.htaccess wildcard subdomain pointing to directory + hashVery simple to doubt. Redirect by . htaccess containing a wildcard and hash subdomain. Of: http://carros.domain.com/visualizar#123 http://casas.domain.com/visualizar#345… 
- 
		2 votes0 answers48 viewsHow to prevent a specific page from being redirected to https without using php?Hello. I need to avoid redirecting a page from my site to https, but I didn’t want to use php, java, or other programming language. I’d like to use the .htaccess On my website, I used the rule below… 
- 
		1 votes0 answers148 viewsHTACCESS crashes correctly on environment changeI 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 votes0 answers32 viewsRewrite URL s using . htaccessHow 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 votes1 answer112 viewsMultiple Rewriterules for 3rdparty and routesI 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 answer220 viewsIs it possible to configure a Rewrite Rule in AWS without changing the directories?I have a small problem since I set up the AWS. The fact is that it came a little prepared when it fell into my hand. It is configured to save in the domain.com.br/site/wordpress, and when trying to… 
- 
		1 votes1 answer26 views.htaccess detect string after SlashI’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 answers243 viewsredirect a sub-domain to the main domainHello need to make a redirect of an active blog installed in the sub-domain for the main domain I mounted a redirect from the sub to the main one, the problem are the posts of this blog that are… 
- 
		1 votes1 answer86 viewsHow to create a rewrite rule to read a repository from a website subdirectoryI 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 votes0 answers133 viewsUsing the . htaccess file with RewritebaseI use the file. htaccess for user-friendly URL writing, but I always have trouble with the links of style sheets and images when a rewriting is done that adds a level or removes. Type:… 
- 
		1 votes0 answers384 viewsChange to HTACCESS: Rewritre URL to insert domainGood morning! I have a site working today at Locaweb, and it has presented several problems of slowness and we believe to be the server. We’re trying to migrate to Hostgator for testing, and we’re… 
- 
		1 votes1 answer48 viewsUser-friendly URL receiving p/PHP valueMy doubt lies in this URL: site.com/embed.php?id=a48sa4d2a3s4d65a1s5d6a1sd56 I get that amount for $_GET['id']. How can I turn into one URL beautiful and organized? Example:… 
- 
		1 votes0 answers41 viewsHelp . htaccess URL’s FriendliesHello, I’m developing an online compiler, similar to Ideone, and would like users to be able to access some of their codes already made on the site in a simpler way. Currently I use a page… 
- 
		1 votes1 answer793 viewsAdd Parameters to Wordpress URLI have a plugin that manages links in Wordpress, with images and texts pretending to be related articles, all are external links. (Taboola type). I would like to add at the end of the Links some… php wordpress friendly-url rewrite-url wordpress-pluginasked 8 years, 11 months ago Anderson Costa 133
- 
		1 votes1 answer74 viewsHow to avoid rewriting redirects?I have the following rule at the root: RewriteEngine On RewriteRule ^webapp/(.*)$ ./sistema/public/v1/webapp/$1 [L,R=301] The problem is that when I type in the browser:… 
- 
		1 votes1 answer962 viewsHow to define a subfolder as the root of an HTACCESS application?I have a certain PHP application written with the Silex framework. I set up the structure in a way where only the folder public would be the folder where I would point the Apache to read it. My… 
- 
		1 votes1 answer62 viewsProblem with regular expression in . htaccessI have the following URL: http://< site >/restrito/usuarios/pagina/ This page is responsible for displaying a table containing users registered in the system, can receive as variable numbers… 
- 
		1 votes1 answer213 viewsRule conflict in . htaccessI am facing an error with . htaccess file and I am unable to resolve, is the following: I have the following rule: RewriteRule ^([^\.]+)$ $1.php [NC,L] This rule aims to ignore the . php extension… 
- 
		1 votes1 answer60 viewsProblems with Rewrite PHP / Apache02 days ago I moved from Linux distro and am now using Elementary OS. I installed Apache, Mysql and PHP manually, in the same way I installed it in the previous distro, but I have problems with… 
- 
		0 votes1 answer79 viewsReformulating URL in htacessI am trying to rephrase the url that causes you to change the page. I have the following URL www.site.com/categoria.php?cat=Humor&page=3 The way above quotes the pagination works perfectly. But… 
- 
		0 votes1 answer95 viewsHow to map all requests to a single file?I need to map all requests that arrive to the server as follows: exemplo.com/joao => exemplo.com/index.pl?u=joao exemplo.com/joao/ => exemplo.com/index.pl?u=joao My file /var/www/.htaccess is… 
- 
		0 votes2 answers1247 viewsRewrite - How to redirect everything without index.phpI would like to redirect all requests from my Apache server to the test.php file and remove the index.php file from the root folder (public_html or Documentroot). I have the following code:… 
- 
		0 votes2 answers1115 viewsURL rewriting with parameter for another site . htaccessI’d like to write a rule on .htaccess with the RewriteRule so that when someone enters the old site, be redirected to the new site keeping the requested parameter on the old site. Old site:… 
- 
		0 votes1 answer614 viewsAccess /index.php as /index (without ".php")Using regular expressions, I can check index.html pages as index but not index.php pages as index. My . htaccess. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond… 
- 
		0 votes1 answer158 viewsHow to modify a url sent via get [Codeigniter] form?Guys I need to modify a url but don’t know how to do it. I have the following url: http://wedding.axitech.com.br/?procuraonde=Palhoça&procuraoque=bolos and need to turn to the url below:… 
- 
		0 votes1 answer167 viewsRewrite sending to wrong pageI have the following rewrites in my htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^dados/series/([a-z,0-9,A-Z-].+)/?$ dados-series.php?cache=$1 [NC,L]… 
- 
		0 votes0 answers77 viewsHow to ignore a subdirectory that is not being represented at the current address?Obs: The links are fictitious, but they represent my problem. I have a project done in pre-store that in the production environment, is within a subsdirectory: www.site.com/rio/index But in my… 
- 
		0 votes0 answers38 viewsUrl friendly . htaccess?How I turn this url: http://pagina.com.br/detalhe-candidato.php?idcandidato=5&nomecandidato=PC%20Siqueira in this: http://pagina.com.br/5-PC-Siqueira With htaccess? If yes, how? Thank you… 
- 
		0 votes1 answer90 viewsHow to rewrite a URLGood afternoon, everyone. Could you help me with my question ? I wanted to rewrite a URL. For example: <a href="#Contato">Contato</a> which points to a DIV Contact ID, however, the URL… 
- 
		0 votes1 answer53 viewsIn regular expressions in . htaccess, what does this rule mean?What this rule is doing exactly? RewriteCond %{HTTP_HOST} ^(www\.)?website\.com\.br$ RewriteRule . - [E=REWRITEBASE:/] 
- 
		0 votes1 answer246 viewsURL friendly Classic ASP with Isapi RewriteGood morning, you guys. The point is I can access an address dominio.com/modulo/id/titulo and he rewrites to dominio.com/default.asp?link=artigo&id=123&titulo=teste, but my question is…