Page 1 of 1

Change from "Disable URL rewriting" to mod_rewrite

Posted: Tue Jul 01, 2008 4:26 pm
by tazilein
I use an adapted serendipity installation for a small business website. Since the beginning I used "Disable URL rewriting", but as I am currently optimizing the website I would like to activate mod_rewrite and there I have several questions:

1) Can I make redirects form all currently indexed pages to the new rewritten ones so google knows that these are the old pages in a new fashion :D

f.ex http://www.viennacityflats.at/wien/inde ... eiten-Wien
is afterwards
http://www.viennacityflats.at/wien/Sehe ... eiten_Wien

And I want google to know that this is the new page, but still with the same content (301 redirect) - this should be done for all approx. 200 pages

2) If for any reason mod_rewrite fails how can I switch back if I cannot reach the admin panel anymore (or is that not possible ?)

Thanks for reading that long entry until here :)

Re: Change from "Disable URL rewriting" to mod_rew

Posted: Tue Jul 01, 2008 9:23 pm
by garvinhicking
Hi!

Actually, old URLs should still work, as long as you only enable mod_rewrite and not change the permalink scheme. So there isn't really a need to redirect anything. Google will later use your permalinks and discard the old ones, once it properly indexes your new URL layout.

If you really want 301 redirects, you need custom URL rewrite rules.Manually.

2: You can always use http://blog/serendipity_admin.php

HTH,
Garvin