GetSimple Support Forum
Redirect 301 - 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: Redirect 301 (/showthread.php?tid=7269)



Redirect 301 - paul59 - 2015-05-08

Hello,

Google indexed my website with all the URLs like index.php?id=my-url

I'd like to do a redirect 301 via htaccess for example.

For example :

http://www.mydomaine.fr/index.php?id=hello-my-friend

should do a 301 redirect to 

http://www.mydomaine.fr/hello-my-friend.html

Can you help me please ?


RE: Redirect 301 - shawn_a - 2015-05-08

Did you enable fancyurls and set your permalink to %parent%/%slug%.html already or something similar.


RE: Redirect 301 - paul59 - 2015-05-08

(2015-05-08, 00:12:02)shawn_a Wrote: Did you enable fancyurls and set your permalink to %parent%/%slug%.html already or something similar.

Yes i tried but nothing happened. And I don't think it do a 301 redirect. no ?

I tried to had this in the htaccess as well. But nothing works i don't understand


# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+).html$ index.php?id=$1 [QSA,L]


RE: Redirect 301 - shawn_a - 2015-05-08

No but working fancy urls will fix your original indexing problem.

You would have to add your own redirect rules in htaccess
I think you can enable

define('GSCANONICAL', 1);
in gsconfig

But I am not entirely sure.


RE: Redirect 301 - paul59 - 2015-05-11

(2015-05-08, 01:05:09)Yes it Words thanks ! :) shawn_a Wrote: No but working fancy urls will fix your original indexing problem.

You would have to add your own redirect rules in htaccess
I think you can enable

define('GSCANONICAL', 1);
in gsconfig

But I am not entirely sure.