pohodak Posted February 16, 2013 Share Posted February 16, 2013 Zdravím, poradíte mi ako presmerovať adresy www.nieco.sk/123-kategoria?orderby=name&orderway=asc na www.nieco.sk/123-kategoria v prípade, keď už nechcem používať zoraďovanie podľa názvu? Vďaka. Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted February 18, 2013 Share Posted February 18, 2013 přes 301 v htaccessu Link to comment Share on other sites More sharing options...
pohodak Posted February 18, 2013 Author Share Posted February 18, 2013 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 More sharing options...
JAKCRABBIT Posted February 18, 2013 Share Posted February 18, 2013 Tohle je ale naprosto jinej zápis: Redirect 301 url1.php url2.php Link to comment Share on other sites More sharing options...
pohodak Posted February 18, 2013 Author Share Posted February 18, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now