versiona Posted May 24, 2013 Share Posted May 24, 2013 (edited) Hola, a ver como me explico, estoy un poco verde en el tema y por lo visto me estoy enfrentando a un problema complejo. Tengo problemas con las url amigables parece ser principalmente porque mi VPS es de windows no de Linux. Segun mi proveedor de alojamiento debo hacer esto: Hay una solución para nuestros clientes de alojamiento web. webfusion tiene activada la herramienta Rewrite Engine, que usted puede configurar para que analice cualquier petición entrante de archivos y actuar al respecto. Esta herramienta es muy fácil de usar. Solo tiene que crear un archivo .htaccess y añadir el siguiente código: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://nombre_de_su_dominio/.*$ [NC] [OR] RewriteCond %{HTTP_REFERER} !^http://www.nombre_de_su_dominio/.*$ [NC] [OR] RewriteRule .*\.(gif|GIF|jpg|JPG|bmp|BMP|wav|mp3|wmv|avi|mpeg)$ - [F] Pues a mi no me funciona. Explico lo que hago a ver si esta mal. Abro el cliente FTP y me voy al archivo que ya esta generado .htaccess y lo modifico. A lo que hay añado el codigo anterior, quedando así: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^comprarmarcos.es$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^comprarmarcos.es$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again RewriteEngine on RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://comprarmarcos.es/.*$ [NC] [OR] RewriteCond %{HTTP_REFERER} !^http://www.comprarmarcos.es/.*$ [NC] [OR] RewriteRule .*\.(gif|GIF|jpg|JPG|bmp|BMP|wav|mp3|wmv|avi|mpeg)$ - [F] Pues nada de nada. Para mi esto es chino. Alguien sabria ver si es correcto algo de lo que hago? Gracias Edited May 24, 2013 by versiona (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts