SMFHacks.com

SMFHacks.com => Site Discussion => Topic started by: mattizzy on September 13, 2018, 04:15:41 am

Title: Can I redirect Pretty URL topics to another?
Post by: mattizzy on September 13, 2018, 04:15:41 am
please I've tried

Redirect 301 /jokes/how-to-smile /comedy/how-to-laugh

it worked fine but when it redirects to /comedy/how-to-laugh, it adds ?pretty;board=jokes;topic=how-to-smile

in full, the URL shows
http://example.com/comedy/how-to-laugh/?pretty;board=jokes;topic=how-to-smile

instead of just http://example.com/comedy/how-to-laugh
Title: Re: Can I redirect Pretty URL topics to another?
Post by: SMFHacks on September 13, 2018, 10:08:04 am
It has to be the first rewrite command in that file and at the end put [L,QSA]
Title: Re: Can I redirect Pretty URL topics to another?
Post by: mattizzy on September 13, 2018, 04:36:20 pm
It has to be the first rewrite command in that file and at the end put [L,QSA]

Thanks! what Rule will I add the flag [L,QSA] to ? Redirect ?? I heard it has a different syntax as it uses mod_alias.
Title: Re: Can I redirect Pretty URL topics to another?
Post by: SMFHacks on September 13, 2018, 04:39:54 pm
good question I don't know that part but the redirect should be first in the file for sure.