Rewrite for a single page url? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Rewrite for a single page url? (/showthread.php?tid=7593) |
Rewrite for a single page url? - Hypertexter - 2015-10-02 Hello, I would like to make a 301 redirection via .htaccess file for one single page. My rewrite rules at the moment are: Code: <IfModule mod_rewrite.c> But the line with ...oldpagename ...newpagename does not work. What am I doing wrong? The other redirections are for urls without .html and for urls always with www and other stuff. Bye Hypertexter Wow, seems to work with: Code: RewriteRule ^blog/post/oldpagename/?$ $1/blog/post/newpagename [R=301,L] But it was trial and error - with a phase of a frozen Firefox or server, where no redirection worked any more, very funny. Does anybody know a good introduction into the syntax of .htaccess for beginners? I just found a lot of "do this" without further explanations. RE: Rewrite for a single page url? - jigarkhan - 2015-10-13 Better is find .htaccess tutorials on internet as .htaccess tutorials are some thing else compared to get simple cms. Here is a tutorial though https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/ RE: Rewrite for a single page url? - datiswous - 2015-10-16 Maybe you can use this plugin: http://get-simple.info/extend/plugin/redirect/688/ RE: Rewrite for a single page url? - shawn_a - 2015-10-16 There are some rules scattered about the forums, try searching for htaccess redirects and stuff. Or just wait and someone will eventually post something useful. RE: Rewrite for a single page url? - Hypertexter - 2015-10-19 @all: Thank you for your answers. At the moment I am happy with the solution from my first post, but when the next difficulties occur, I will try the plugin - and read the article for beginners: it seems to be more detailed than those I knew before! Thank you Hypertexter RE: Rewrite for a single page url? - Carlos - 2015-10-20 Note that the Redirect plugin only works for pages, NOT for posts (News Manager, GS Blog...) RE: Rewrite for a single page url? - Hypertexter - 2015-10-22 (2015-10-20, 04:29:01)Carlos Wrote: Note that the Redirect plugin only works for pages, NOT for posts (News Manager, GS Blog...) Aha! This could have the same reason like why my standard rewrite entries did not work for blog post pages... RE: Rewrite for a single page url? - Carlos - 2015-10-22 No, it's just that the Redirect plugin was made for normal pages. RE: Rewrite for a single page url? - Nfcms - 2015-10-26 Find the .htaccess programming code on the internet. Is the best way to redirection via .htaccess file. https://gist.github.com/ScottPhillips/1721489 |