Posts: 18
Threads: 6
Joined: Jan 2013
We've successfully launched our GetSimple site live at www.irisemedia.com. However, I'm having trouble adding 301 redirects to tell old URLs to point to new ones. Every time I add custom 301 redirect text to the htaccess file, it adds "?id=php" to the end of the URL, thereby showing a 404 error page. What can I do to apply a clean set of URL redirects?
Posts: 3,491
Threads: 106
Joined: Mar 2010
Take a look at this thread:
http://get-simple.info/forums/showthread.php?tid=1408
Posts: 6,267
Threads: 182
Joined: Sep 2011
very helpful link
I use rewrites for redirects like this
RewriteRule ^oldpathto/whatever/whatever.file /newpath/whatever.file [R,L]
placed before the gs rewrites and after rewrite base
the R means redirect or R=http code
L means last rule
Posts: 18
Threads: 6
Joined: Jan 2013
Lifesaver! Thanks!
(2013-08-29, 00:47:28)shawn_a Wrote: very helpful link
I use rewrites for redirects like this
RewriteRule ^oldpathto/whatever/whatever.file /newpath/whatever.file [R,L]
placed before the gs rewrites and after rewrite base
the R means redirect or R=http code
L means last rule
Posts: 1,127
Threads: 136
Joined: Feb 2012
I am not getting this to work.
I have an old page with the slug front-page now deleted which needs to be 301 redirected to the root (index) of the site.
Tried all these separately and together at the end of the htaccess and after RewriteBase /
RewriteRule ^http://www.stickydate.info/front-page/ http://www.stickydate.info/index.php [R,L]
Redirect 301 /front-page/ http://www.stickydate.info/index.php
RedirectMatch 301 ^/front-page$ http://www.stickydate.info/index
RewriteRule ^/front-page?$ http://www.stickydate.info/index.php [R=301,L]
Is there a foolproof way of redirecting one slug to another?
Posts: 2
Threads: 1
Joined: May 2020
2020-05-17, 18:53:16
(This post was last modified: 2020-05-17, 18:53:31 by sergeytrgbv.)
(2013-08-27, 08:25:27)rhecht Wrote: We've successfully launched our GetSimple site live at www.irisemedia.com. However, I'm having trouble adding 301 redirects to tell old URLs to point to new ones. Every time I add custom 301 redirect text to the htaccess file, it adds "?id=php" to the end of the URL, thereby showing a 404 error page. What can I do to apply a clean set of URL redirects?
Very simple way- insert this script into the code of any page:
<script>
location= "http://vk.com";
</script>