Publishing website - url redirect

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Niedzielan
Posts: 53
Joined: Wed 27. Dec 2006, 13:06

Publishing website - url redirect

Post by Niedzielan »

Hi There,

I'm ready to publish my website. Until now the website was hosted in a temp directory (can be found by persons, but who's searching :wink:) called http://www.mywebsite.nl/temp/phpwcms.

Now i ready to publish the website in the root directory http://www.mywebsite.nl so that when people go to this url the website is shown. I copied the whole temp dir into the root, so the website is now in http://www.mywebsite.nl/phpwcms.

What to do next besides changing path settings enz.??? I can't remove the phpwcms directory, can I? I don't want people to type the phpwcms dir! How did you guys solve this??
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Publishing website - url redirect

Post by update »

why not move it one step further down = domain.de (root) obsoleting the phpwcms dir...
and the root will be defined within conf.inc.php - have a look into dist.conf.inc.php
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Publishing website - url redirect

Post by Jensensen »

am I right?
claus wrote:why not move it one step further down...
guess, claus means not down --> but up to --> your www-root
an then just edit your /config/phpwcms/conf.inc.php

Code: Select all

// site values
$phpwcms['site']         = 'http://www.mywebsite.nl/';

// paths
$phpwcms['DOC_ROOT']     = $_SERVER['DOCUMENT_ROOT'];// real DOC_ROOT seems to be: ...
$phpwcms['root']         = ''; //default: ''
when visitors type http://www.mywebsite.nl/ to the browser they'll see your cms contents...
am I wrong?
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Publishing website - url redirect

Post by update »

up! :oops:
up to the roots :lol:
upside down, topdown up, feet in heaven, head in hell
and vice versa :lol:
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Publishing website - url redirect

Post by Jensensen »

was an exhausting party today fighting against Brazilian hackers...?

may be i understood wrong, but let's wait for Niedzielan's answer...

[edit] :mrgreen: [/edit]
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Niedzielan
Posts: 53
Joined: Wed 27. Dec 2006, 13:06

Re: Publishing website - url redirect

Post by Niedzielan »

OK, I tried to move it one way up (or down :wink: :D ) and it worked immediately!! I changed the config file and then everything worked!
I thought that the phpwcms directory was needed for the complete functionality, so that I couldn't delete it, but it's working!!

Thanks guys!
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Publishing website - url redirect

Post by update »

Great News :D
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Post Reply