Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URL redirects
#1
We've successfully launched our GetSimple site live at http://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?
Reply
#2
Take a look at this thread:
http://get-simple.info/forums/showthread.php?tid=1408
Reply
#3
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
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
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
Reply
#5
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?
Reply




Users browsing this thread: 1 Guest(s)