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
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!
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
Categories: MS SQL, Programming, Wordpress Tags: and domain, and domain file, blog2, com, com domain2 newblog, Domain, domain file, domain file structures, domain1, domain2, file, file structures, file structures programming, structures, structures programming wordpress, Wordpress
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.
Categories: MySQL, PHP, Wordpress Tags: Blog, com, Domain, domain mapping, domain mapping help, domain1, domain1 com, Mapping, mapping help, php wordpress mysql, post, Project, Wordpress, wordpress domain, wordpress domain mapping
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
Categories: MySQL, osCommerce, PHP Tags: Affiliate, amp, amp amp, com, com ref, cookie, domain1, domain1 com, domain2, domain2 com, pay, PHP, php mysql oscommerce, php session, ref, session, Smarty, smarty template, Template, template php, via, via yahoo messenger
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
Categories: MySQL, osCommerce, PHP Tags: Affiliate, amp, amp amp, com, com ref, cookie, domain1, domain1 com, domain2, domain2 com, expert, expert session, expert session cookie, pay, PHP, php expert, php expert session, php mysql oscommerce, ref, session, session cookie, via, via yahoo messenger
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
Categories: MySQL, osCommerce, PHP Tags: Affiliate, amp, amp amp, com, com ref, cookie, cookie expert, domain1, domain1 com, domain2, domain2 com, expert, pay, PHP, php mysql oscommerce, php session, php session cookie, ref, session, session cookie, session cookie expert, via, via yahoo messenger
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
Categories: MySQL, osCommerce, PHP Tags: Affiliate, affiliate link, affiliate link session, amp, com, com ref, cookie, Cookies, domain1, domain1 com, domain2, domain2 com, link, link session, link session cookies, pay, php mysql oscommerce, ref, session, session cookies, via, via yahoo messenger
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
Categories: MySQL, osCommerce, PHP Tags: Affiliate, affiliate link, affiliate link cookies, com, com ref, cookie, Cookies, domain1, domain1 com, domain2, domain2 com, link, link cookies, pay, php mysql oscommerce, ref, via, via yahoo messenger