Jump to content

htaccess y links


jh0nnyd3pp

Recommended Posts

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php 



Eso es lo que tengo en el htaccess, cuando activo la opcion Url amigable y le cambio el nombre a ".htaccess" (Y le doy chmod 777) al entrar en un link me dice que no tengo autoizacion para ver la pagina.

¿Como lo tendria que dejar para que funcione?

Muchas gracias, por todas las veces que me ayudaron ya

Link to comment
Share on other sites

[21:25:38] SITE CHMOD 644 .htaccess
[21:25:38] 200 Permissions changed on .htaccess


Ahi le cambie los permisos y cuiando entro a la web me pone

Forbidden
You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.3 (CentOS) Server

Sigue sin funcionar, gracias igual
Link to comment
Share on other sites

  • 3 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...