Change from "Disable URL rewriting" to mod_rewrite

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
tazilein
Regular
Posts: 56
Joined: Sun Apr 30, 2006 11:44 pm
Contact:

Change from "Disable URL rewriting" to mod_rewrite

Post 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 :)
my S9Y-Blogs: my personal brainbackup | [url=http://www.viennacityflats,at]Vienna Apartments Rental[/url] | Kasperls Geschichten | various other Sites using S9y as CMS
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Change from "Disable URL rewriting" to mod_rew

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply