Archive

Posts Tagged ‘domain1’

Php Code To Remove Http Www

January 1st, 2010 Comments off

Hello

I have code that works fine when used on a regular domain like test.com but if used on a subdomain like test.test-test.com it is not working, it strips everything but test.com

Here is what I need it to do. The $domain is pulled from the database on the host site it could be http://domain.com or http://www.domain.com or even http://www.test.test-test.com and maybe even sometimes http://www.test-test.com/test

I need to check $domain for the host site against the $siteurl data that is stored in the database, all of the $siteurls are the domain only no http or www.

so what I need it to do is if $domain (http://www.test.test-test.com) remove the http://www and compare it to the $siteurls stored in the database which would be test.test-test.com, if a match then do this action.

Hope I explained that well enough for someone to understand.

Here is the existing code:

$pattern = ‘/w+..{2,3}(?:..{2,3})?(?:$|(?=/))/i’;
$url = $domain;
if (preg_match($pattern, $url, $domain1) === 1) {

if($domain1[0]==”$siteurl1″) {
$enabled = $sitestatus1;
$site = $site1;
} elseif($domain1[0]==”$siteurl2″) {
$enabled = $sitestatus2;
$site = $site2;
} elseif($domain1[0]==”$siteurl3″) {
$enabled = $sitestatus3;
$site = $site3;
} elseif($domain1[0]==”$siteurl4″) {
$enabled = $sitestatus4;
$site = $site4;
}
} //end prgmatch

Categories: MySQL, PHP Tags: , , , , , ,

Htaccess Redirects

November 2nd, 2009 Comments off

We need some rewrites written for a site that contains dynamic URLs and Static, to a new site that contains only static URLs.

Basically, we’d only need you to create the “template” for the 3 types of rewrites we’ll need, they are:

http://domain1.org (root only) goes to http://www.domain2.org/gay-fine-by-me

www.domain1.org/?page=faq goes to http://www.domain2.org/gay-fine-by-me-faq

and

www.domain1.org/news goes to http://www.domain2.org/news

So, basically, anytime someone goes to the root of the old site, domain1, they will be redirected to a page on the new site. BUT if they go to a specific page on the old site they will get redirected to the proper new page.

Deliverable will be an .htacess file.

Thanks!

Categories: PHP Tags: , , , , , ,

Wp And Domain File Structures

July 2nd, 2009 Comments off

Okay…Here is the situation. I have a website and domain let’s call it DOMAIN1 with a blog call that BLOG1. I have created a new blog (BLOG2) and have a domain for that as well (DOMAIN2).

DOMAIN1 has a link to BLOG1 on the home page and nothing really needs to be done to that.

I have placed the WordPress Installation (BLOG2) in the following folder www.DOMAIN1.com/DOMAIN2/newblog. What I want is to have BLOG2 viewed by using www.DOMAIN2.com with all posts/files/pages etc viewed using DOMAIN2 not www.DOMAIN1.com/DOMAIN2/newblog……

I tried to have my webhost help with this but they were pretty useless, in fact they even made it so that I cannot login to my WP Dashboard from the homepage. I’m hoping one of you pros can fix this for me as well.

I’ll provide the actual domain names once the project is awarded.

Thanks

WordPress Domain Mapping Help

May 6th, 2009 Comments off

Thanks for taking a moment to read my project post.

I am trying to figure out how to set up a single WordPress install where the blog categories can be viewed as individual domains by both users and search engines.

Each category would appear as a separate blog.

For example:

Main blog :

domain.com/cars/

could be found at

domain1.com

Also when a user clicks on a blog post link at domain1.com the url would show domain1.com/cars/this-is-a-post-title-example.

Also, please give a brief description on how you will execute this task.

Examples of this type of project are always helpful when deciding on a programmer.

Please contact me if you are unclear about the project details.

Smarty Template Php Session

April 19th, 2009 Comments off

Hello and thanks in advance for spending time to review my project. I need an expert with smarty templates and sessions. cookies and affiliate links. This is a job for expert only.

I need someone that is available right now via yahoo messenger, over the next 3-4 hours that can start on this and finish this immediately within 4-6 hours of bid.

I will pay via Escrow only and I am here available via yahoo messenger to assist with path files and my extensive knowledge of the site with any questions you may have.

The project:

My store script already has an affiliate system in place and issues customers a unique affiliate link for www.domain1.com/ref=1 . It already has some cookie in place so that once a user clicks that link it stores the ref id so they can browse pages and finally decide to sign up they goto the registration page and it knows who the refferal is.

1. Need to find out where the script is that makes the referal id and make it say www.domain2.com/ref=1

.somehwere it makes the url …instead of it displaying domain1.com/ref=1 we need to change it too domain2.com/ref=1 ……thats first step

2. Need to find the existing cookie they use on domain1.com and use it on domain2.com

So now

Php Expert Session/cookie

April 19th, 2009 Comments off

Hello and thanks in advance for spending time to review my project. I need an expert with sessions. cookies and affiliate links. This is a simple yet complex job for expert only.

I need someone that is available right now via yahoo messenger, over the next 3-4 hours that can start on this and finish this immediately within 4-6 hours of bid.

I will pay via Escrow only and I am here available via yahoo messenger to assist with path files and my extensive knowledge of the site with any questions you may have.

The project:

My store script already has an affiliate system in place and issues customers a unique affiliate link for www.domain1.com/ref=1 . It already has some cookie in place so that once a user clicks that link it stores the ref id so they can browse pages and finally decide to sign up they goto the registration page and it knows who the refferal is.

1. Need to find out where the script is that makes the referal id and make it say www.domain2.com/ref=1

.somehwere it makes the url …instead of it displaying domain1.com/ref=1 we need to change it too domain2.com/ref=1 ……thats first step

2. Need to find the existing cookie they use on domain1.com and use it on domain2.com

So now

Php Session/cookie Expert

April 19th, 2009 Comments off

Hello and thanks in advance for spending time to review my project. I need an expert with sessions. cookies and affiliate links. This is VERY complex job for expert only.

I need someone that is available right now via yahoo messenger, over the next 3-4 hours that can start on this and finish this immediately within 4-6 hours of bid.

I will pay via Escrow only and I am here available via yahoo messenger to assist with path files and my extensive knowledge of the site with any questions you may have.

The project:

My store script already has an affiliate system in place and issues customers a unique affiliate link for www.domain1.com/ref=1 . It already has some cookie in place so that once a user clicks that link it stores the ref id so they can browse pages and finally decide to sign up they goto the registration page and it knows who the refferal is.

1. Need to find out where the script is that makes the referal id and make it say www.domain2.com/ref=1

.somehwere it makes the url …instead of it displaying domain1.com/ref=1 we need to change it too domain2.com/ref=1 ……thats first step

2. Need to find the existing cookie they use on domain1.com and use it on domain2.com

So now

Affiliate Link Session Cookies

April 19th, 2009 Comments off

Hello and thanks in advance for spending time to review my project. I need an expert with sessions. cookies and affiliate links. This is VERY complex job for expert only.

I need someone that is available right now via yahoo messenger, over the next 3-4 hours that can start on this and finish this immediately within 4-6 hours of bid.

I will pay via Escrow only and I am here available via yahoo messenger to assist with path files and my extensive knowledge of the site with any questions you may have.

The project:

My store script already has an affiliate system in place and issues customers a unique affiliate link for www.domain1.com/ref=1 . It already has some cookie in place so that once a user clicks that link it stores the ref id so they can browse pages and finally decide to sign up they goto the registration page and it knows who the refferal is.

1. Need to find out where the script is that makes the referal id and make it say www.domain2.com/ref=1

.somehwere it makes the url …instead of it displaying domain1.com/ref=1 we need to change it too domain2.com/ref=1 ……thats first step

2. Need to find the existing cookie they use on domain1.com and use it on domain2.com

So now

Affiliate Link Cookies

April 19th, 2009 Comments off

Hello and thanks in advance for spending time to review my project. I need an expert with cookie’s and affiliate links.

I need someone that is available right now via yahoo messenger, over the next 2-3 hours that can start on this and finish this immediately within 4 hours of bid.

I will pay via Escrow only and I am here available via yahoo messenger to assist with path files and my extensive knowledge of the site with any questions you may have.

The project:

My store script already has an affiliate system in place and issues customers a unique affiliate link for www.domain1.com/ref=1 . It already has some cookie in place so that once a user clicks that link it stores the ref id so they can browse pages and finally decide to sign up they goto the registration page and it knows who the refferal is.

1. Need to find out where the script is that makes the referal id and make it say www.domain2.com/ref=1

.somehwere it makes the url …instead of it displaying domain1.com/ref=1 we need to change it too domain2.com/ref=1 ……thats first step

2. Need to find the existing cookie they use on domain1.com and use it on domain2.com

So now

Bear