My htaccess has the REWRITE enabled:
#Activar RewriteEngine para URL's amigables
Options +FollowSymLinks
RewriteEngine on
RewriteBase /Carpeta
RewriteRule ^home/?$ index.php [L]
RewriteRule ^signup/?$ index.php?page=signup [L]
RewriteRule ^login/?$ index.php?page=login [L]
RewriteRule ^logout/?$ php/logout.php [L]
RewriteRule ^submit/([a-zA-Z0-9]+)/?$ index.php?page=submit&type=$1 [L]
In my HTML / PHP I have the <base>
tag pointing to the same folder as the htaccess.
<base href="/Carpeta">
I have it this way because I'm doing tests on a server, which is free and I can not do subdomains, and I created a folder to test this new site.
All friendly URLs do not work for me:
http://misitio.es/Carpeta/
Directly does not load any resource: images, css, js ... In the element inspector, if I open the link of each resource there is no problem in viewing it, but the web does not find it for any reason.
All URLs of the resources are relative.
In local there is no problem with the htaccess nor with the <base>
tag, and that is what is puzzling me.
Any idea why this happens?
I add
I updated the question, since with the tag and the htaccess together they seem to be in conflict or something. Also, if I delete the base tag, keeping the htaccess tag, it happens that all the friendly url's work, except those that have more than one level:
http://misitio.es/Carpeta/URLAMIGABLE/URLAMIGABLE2
this does not work (it would be the last row of the htaccess).