Page 1 of 1
URL Rewriting
Posted: Thu Jul 03, 2008 3:28 pm
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?
Re: URL Rewriting
Posted: Thu Jul 03, 2008 4:05 pm
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
Posted: Fri Jul 04, 2008 12:17 am
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?
Posted: Fri Jul 04, 2008 1:07 am
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!
Posted: Fri Jul 04, 2008 9:43 am
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
Posted: Fri Jul 04, 2008 8:51 pm
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!
Posted: Fri Jul 04, 2008 10:06 pm
by garvinhicking
Hi!
I'm very glad to hear that! Hope you'll have fun using Serendipity!
Regards,
Garvin