Hi guys,
This is more a wordpress question than a swift question, but the answer might be so laughably easy for you that I thought I’d ask ..
How do I specify an absolute address in php?
More specifically:
I’ve been developing my site at http://www.samurdermysteries.co.za/wordpress
I want to move development address to http://www.samurdermysteries.co.za/beta
ie. moving folder-to-folder on the same server, NOT to folder-to-root. All documentation I find is folder-to-root. That’s why I’ve turned to you guys. Last resort 🙂
I know that I need to edit index.php at /home/username/public_html/beta/index.php
require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php‘ );
but I think that means it’s looking in /public_html/beta/wordpress and not in /public_html/wordpress/
So I need it to point to something like
require( dirname( __FILE__ ) . ‘/home/username/public_html/wordpress/wp-blog-header.php‘ );
but I don’t know how to write that file path.
I’ve tried looking online but all the documentation is about moving from domain.com/folder to domain.com
http://codex.wordpress.org/Moving_WordPress
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory