[wp-hackers] How to make root relative urls work in, , subdomain
Marcus Pope
Marcus.Pope at springbox.com
Thu Nov 3 15:37:13 UTC 2011
Marty - it is a very good solution for a good percentage of people (I hate to say majority because mobile devices are becoming so popular,) but if you have to browse or manage your dev site via your iPhone or Android device you'll find that there are no options for editing your hosts files on those platforms (well, you can on android if you jailbreak/root the device.)
In those cases you have to rely on a more robust approach using a higher-end wifi router that allows you do make network wide mappings, or customize it with a local network dns address (and then you have to build and manage your own dns server.) Many home and small business wifi routers do not give you these options, and in this case you are left with pushing to production before you can test any work on a mobile platform.
But it's a good, quick option indeed when you can get away with it.
-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Dagan Henderson
Sent: Thursday, November 03, 2011 12:08 AM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] How to make root relative urls work in, , subdomain
I think that's a pretty typical process, Marty. Nothing wrong with it at all (because it works).
-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Marty Fried
Sent: Wednesday, November 02, 2011 10:04 PM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] How to make root relative urls work in, , subdomain
I might be completely off base, and this may not be the best way to do this, but the method I've been using is to make an entry in my hosts file (on my development system) for a URL ending in ".dev" instead of ".com" for sites I'm working on - ie, http://example.dev if the real site is example.com. Then, I create a virtual domain in Apache to map example.dev to the directory I'm using, and restart Apache. It may not be the least amount of maintenance, but it takes me almost no time to set it up using cut and paste from a previous entry, and it give me a good simulation of the final site, with the only difference being I use ".dev" instead of ".com". The standard Wordpress .htaccess file works with this setup.
If this is a dumb way to do it, I'm open to change, and I apologize. But if it's not obvious, and is something that anyone is interested in, I could post details of the setup. I use Ubuntu Linux for both my server and my dev system, fwiw.
-Marty Fried
On Mon, Oct 31, 2011 at 8:38 PM, Ryann Micua <ryannmicua at gmail.com> wrote:
> Hi Marcus,
>
> The rewrite doesn't seem to be working on my local server. But, if you
> say that it's the right then I think it's something wrong with my lamp
> setup I'll look into it. we came up with almost the same rules anyway
> =) save for taking out the domain name and adding flags.
>
>
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list