Jump to content

Presmerovanie Url Pri Zoradení Podľa Mena


pohodak

Recommended Posts

Ved to, ze to neviem spojazdnit. Aktualne sa o kategorie stara kod:

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$1&noredirect=1 [QSA,L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L]

Len neviem ako ho upravit, aby bolo funkcne aj presmerovanie, ktore potrebujem.

Link to comment
Share on other sites

Viem, ale nefunguje mi v kombinacii s predoslym. Pri konkretnych url to nie je problem. Jednoducho ich zadam pomocou toho Redirect 301 ...

Chcem to aplikovat na vsetky kategorie a zaroven zachovat aj "pekne url" pri kategoriach.

URL nieco.sk/25-cislokategorie vznikne vyssie uvedenym kodom s RewriteRule. kde sa nacita vlastne nieco.sk/category.php?id_category=25, ale ked je www.nieco.sk/123-kategoria?orderby=name&orderway=asc chcem stale presmerovat na www.nieco.sk/123-kategoria. Dufam, ze som to napisal spravne.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...