<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://manuais.iessanclemente.net/index.php?action=history&amp;feed=atom&amp;title=Informaci%C3%B3n_sobre_URL%27s_amigables</id>
	<title>Información sobre URL&#039;s amigables - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://manuais.iessanclemente.net/index.php?action=history&amp;feed=atom&amp;title=Informaci%C3%B3n_sobre_URL%27s_amigables"/>
	<link rel="alternate" type="text/html" href="https://manuais.iessanclemente.net/index.php?title=Informaci%C3%B3n_sobre_URL%27s_amigables&amp;action=history"/>
	<updated>2026-10-21T12:03:06Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://manuais.iessanclemente.net/index.php?title=Informaci%C3%B3n_sobre_URL%27s_amigables&amp;diff=51693&amp;oldid=prev</id>
		<title>Veiga en 18:59 27 nov 2014</title>
		<link rel="alternate" type="text/html" href="https://manuais.iessanclemente.net/index.php?title=Informaci%C3%B3n_sobre_URL%27s_amigables&amp;diff=51693&amp;oldid=prev"/>
		<updated>2014-11-27T18:59:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Las direcciones URL son un aspecto del SEO a menudo muy descuidado.&lt;br /&gt;
&lt;br /&gt;
Si las URLs son complicadas, los usuarios van a tener problemas para entenderlas y recordarlas, además de proporcionarte un beneficio nulo en los buscadores.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Introducción a las direcciones URL&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Una URL o Uniform Resource Locator (del inglés, localizador de recursos uniforme) nos es más que la dirección de un recurso en Internet, como lo es una página, una imagen o un video. Lo puedes entender como una dirección física, pero aplicada al mundo online.&lt;br /&gt;
&lt;br /&gt;
A la hora de crear URL&amp;#039;s amigables tenemos que intentar evitar que contengan parámetros. Los típicos ?dato1=xxx&amp;amp;dato2=tttt, etc...&lt;br /&gt;
&lt;br /&gt;
Para ello podremos utilizar .htaccess para reconvertir dichas URL a un formato amigable.&lt;br /&gt;
&lt;br /&gt;
Ejemplo de un fichero .htaccess encargado de dicha tarea:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
RewriteEngine on&lt;br /&gt;
DirectoryIndex index.html&lt;br /&gt;
Options -Indexes&lt;br /&gt;
RewriteRule ^(.+).html$ controlador.php?inc=$1 [QSA,L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
##################################&lt;br /&gt;
## Expresiones regulares: http://es.wikipedia.org/wiki/Expresi%C3%B3n_regular&lt;br /&gt;
&lt;br /&gt;
# ^(.*).html$&lt;br /&gt;
# ^ comienzo del patrón pero dentro de corchetes [] es NO&lt;br /&gt;
# $ fin del patrón&lt;br /&gt;
# () subpatron (Cq cosa que esté entre paréntesis y que coincida con la regla será recordada por la RewriteRule.&lt;br /&gt;
# . -&amp;gt; cq. caracter&lt;br /&gt;
# * -&amp;gt; que el carácter que le precede se repita 0,1 o más veces&lt;br /&gt;
# [] - &amp;gt; representan clases de caracteres&lt;br /&gt;
# [^/\.] -&amp;gt; que contenga cq. caracter menos / y el .&lt;br /&gt;
# \ -&amp;gt; La barra inversa no se utiliza nunca por sí sola, sino en combinación con otros caracteres.&lt;br /&gt;
# \. = carácter .&lt;br /&gt;
# ? = cadena repetida 0 ó 1 vez&lt;br /&gt;
# + = cadena repetida 1 ó más veces&lt;br /&gt;
# * = indica que el carácter que le precede puede aparecer 0, 1, ó más veces&lt;br /&gt;
&lt;br /&gt;
# [QSA,L]&lt;br /&gt;
# With the [QSA] flag, a request for /pages/123?one=two will be mapped to /page.php?page=123&amp;amp;one=two.&lt;br /&gt;
# Without the [QSA] flag, that same request will be mapped to /page.php?page=123 - that is, the existing query string will be discarded.&lt;br /&gt;
&lt;br /&gt;
# 10 mod rewrite rules you should know&lt;br /&gt;
# http://www.noupe.com/php/10-mod_rewrite-rules-you-should-know.html&lt;br /&gt;
&lt;br /&gt;
######################################################################&lt;br /&gt;
# http://www.workingwith.me.uk/articles/scripting/mod_rewrite&lt;br /&gt;
&lt;br /&gt;
# RewriteRule ^page/([^/\.]+)/?$ index.php?page=$1 [L]&lt;br /&gt;
# Let’s walk through that RewriteRule, and work out exactly what’s going on:&lt;br /&gt;
&lt;br /&gt;
# ^page/&lt;br /&gt;
# Sees whether the requested page starts with page/. If it doesn’t, this rule will be ignored.&lt;br /&gt;
&lt;br /&gt;
# ([^/.]+)&lt;br /&gt;
# Here, the enclosing brackets signify that anything that is matched will be remembered by the RewriteRule.&lt;br /&gt;
# Inside the brackets, it says “I’d like one or more characters that aren’t a #forward slash or a period, please”.&lt;br /&gt;
# Whatever is found here will be captured and remembered.&lt;br /&gt;
&lt;br /&gt;
# /?$&lt;br /&gt;
# Makes sure that the only thing that is found after what was just matched is a possible forward slash, and nothing else.&lt;br /&gt;
# If anything else is found, then this RewriteRule will be # ignored.&lt;br /&gt;
&lt;br /&gt;
# index.php?page=$1&lt;br /&gt;
# The actual page which will be loaded by Apache. $1 is magically replaced with the text which was captured previously.&lt;br /&gt;
&lt;br /&gt;
# [L]&lt;br /&gt;
# Tells Apache to not process any more RewriteRules if this one was successful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--[[Usuario:Veiga|Veiga]] ([[Usuario discusión:Veiga|discusión]]) 19:59 27 nov 2014 (CET)&lt;/div&gt;</summary>
		<author><name>Veiga</name></author>
	</entry>
</feed>