Jump to content

Develop PW site on a website running other CMS


theo
 Share

Recommended Posts

Hello

This is probably a FAQ, but I could not find anything

I have an existing Website using Typo3.
I would like to develop a newly designed website with PW on the same web root.
Which is the best way to do this?

Typo3 has an index.php in web root.

How can I keep running the old website until the new one (PW) is ready and tested?

Do I have to use a subfolder or can I test it on the final destination (root)?

Thank you and sorry for my English.
 

Link to comment
Share on other sites

Hello and welcome theo.

I think that your best bet would be a subdirectory. You create your directory, upload processwire and the important step to get it working is to modify your .htaccess.

What the documention say about that :

If you installed ProcessWire in an subdir you have to adjust the RewriteBase to it. So for example if your installation lays in a folder called "pw" (your URL woud look like "http://yoursite.com/pw/") your RewriteBase should look like the following:

RewriteBase /pw/

More info there :  https://processwire.com/docs/tutorials/troubleshooting-guide/page3

Link to comment
Share on other sites

Hello flydev


Thank you.


But this means, that the website will still run under http://yoursite.com/pw/ when it's ready. Right?

If I move the installation to webroot later, the media URLs will be wrong. Is it true?

This is not actually what I was looking for.
 

Thanks.

----------------------------------------------------


Hello szabesz

Some general/security related info about this topic can be found here: https://processwire.com/docs/security/other-software/

EDIT: I also recommend using a subdomain for the staging site. Not just for security reasons but generally this is the "cleanest way "to separate the two.

This is not a problem. Typo3 will be removed when PW is ready.

Thank you.

Link to comment
Share on other sites

"...media URLs will be wrong..."

ProcessWire can take care of it if you "set things up properly", but I have just said in my edited post above, if you use a subdomain, there will be no need to keep an eye on URIs/URLs, migrating should work without this sort of issue.

Link to comment
Share on other sites

PW uses relative paths and URLs. You can freely move things around however you wish (unlike, say, Wordpress...)

Internal links (e.g. via WYSIWYG editor) will not break.

As already mentioned, just make sure you use PW API vars like $config->httpHost / $config->urls->root / $config->urls->assets properly. And maybe add all possible domains in config.php from the beginning:

$config->httpHosts = array('localhost', 'sub.domain.com', 'domain.com');
Link to comment
Share on other sites

PW uses relative paths and URLs. You can freely move things around however you wish (unlike, say, Wordpress...)

Internal links (e.g. via WYSIWYG editor) will not break.

As already mentioned, just make sure you use PW API vars like $config->httpHost / $config->urls->root / $config->urls->assets properly. And maybe add all possible domains in config.php from the beginning:

$config->httpHosts = array('localhost', 'sub.domain.com', 'domain.com');

Thank you.

I have set up a subdomain in the meantime.

I have to add all (later) possible domains to  $config->httpHosts in this case too, right?

Can you explain why this is necessary?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...