URL Rewriting

Having trouble installing serendipity?
Post Reply
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

URL Rewriting

Post by b1ackcr0w »

At first installation, mod_rewriting sent everything for a ball of chalk. At the moment it's switched off.

My question is simple. What should I ask my host to change to allow this to work? It's a Linux hosting package BTW.

I had a thought, would it make any diffierence if the serendipity files were in the root of the webspace (or /htdocs/ rather than /htdocs/serendipity/ )?

While I'm on the subject of verbose URLs I was thinking of shifting the installation into the root of the space in order to rid the URLs of the /serendipity/. Am I right in saying all I need to do is change the Full Path, Relative Path and then URL to Blog in Config;Paths. Save the settings then shift the serendipity files en masse up to the root of htdocs?

I'm expecting a few a the plugins to need sorting, but are there any other big things I need to do?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: URL Rewriting

Post by garvinhicking »

Hi!

Your host must install the Apache module "mod_rewrite" and enable that module for your account. Also he needs to enable that you can specify RewriteRules via your .htaccess (AllowOverride ...)
I had a thought, would it make any diffierence if the serendipity files were in the root of the webspace (or /htdocs/ rather than /htdocs/serendipity/ )?
Regarding URL rewriting, no. If it doesn't work in a subdirectory, it won't work in the root directory, and vice versa.
While I'm on the subject of verbose URLs I was thinking of shifting the installation into the root of the space in order to rid the URLs of the /serendipity/. Am I right in saying all I need to do is change the Full Path, Relative Path and then URL to Blog in Config;Paths. Save the settings then shift the serendipity files en masse up to the root of htdocs?
I would do it the other way round: First move your files en masse, THEN log in and change the paths. Also see the FAQ on www.s9y.org on how to move a full installation, it has some verbose instructions.
I'm expecting a few a the plugins to need sorting, but are there any other big things I need to do?
The biggest issue is that you might need to edit your blog entries to fix up the image paths. If you inserted them, they all have the HTML code for /serendipity/ still in them.

Also, all permalinks of any plugins (Staticpages, etc.) would need adaption. In most cases the FAQ suggests to do a search+replace on a SQL dump of your database, that you later re-upload with fixed paths.

Regard,s
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/
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post by b1ackcr0w »

:(

Did that (shifted everything in serendipity folder into root of htdocs)- put in the URL (www.artofcomplaint.com) into my browser, and got er... nothing. I've set my htdocs permissions to 777, still nothing :(

What have I done wrong?
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post by b1ackcr0w »

Er don't worry. I copied it back, had a go at my original plan, copied it back to root again and it worked. Panic over!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, if you went my route, you would need to first enter the ADMIN suite. After moving, the frontend would not work, but the backend should.

Anyways, it's solved for you, so well done :)

Regards,
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/
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post by b1ackcr0w »

Got to say I've gone from a concept, to having a fully functioning website with all the bells and whistles, ready for content and promotion in 72 hours, while doing my day job.

That's some going. Thankyou s9y!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I'm very glad to hear that! Hope you'll have fun using Serendipity! :)

Regards,
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