Redirect a domain from Joomla 1.5.11 to Wordpress on different domain - joomla1.5

I have a question, I built a website for a client with a new domain (www.domain1.com) and new hosting. They have an old website with a different domain (www.domain2.com). The client requests that if someone clicks on www.domain2.com, that would take them to www.domain1.com. I built the website using WordPress, and the old website is built using Joomla 1.5.11 which doesn't have the option to use redirect under the Components option. I don't have any experience in Joomla 1.5.11 which is pretty old. Thanks in advance for looking into this for me.

Do you mean you want the domain to be redirected?
You can set up a 301 permanent wildcard redirect on your domain2.com to point to domain1.com.
Setting this up will also depend on the type of host you're using.
Also, you can set up an index.php file at the root of domain2.com to redirect:
<?php
header("Location: domain1.com");
?>
The problem with the above script is that you won't be able to do a wildcard redirect! But it can work with any Joomla! link, as Joomla's entrypoint is always set to index.php.
If none of the above is feasible for you, try adding more details about what you actually want to do.

Related

Redirecting old domain urls from old host, to new domain urls with new host, but individual pages are named differently

Both domains were purchased through network solutions. The old host won't exist anymore, so I can't rely on them to serve the htaccess redirects. I can point the nameservers to the new host, but then what? None of my redirect code seems to be working. Any help is much appreciated.
Ex:
olddomain.com > newdomain.com
olddomain.com/hello > newdomain.com/goodbye
olddomain.com/123 > newdomain.com/456
You probably want to do something similar to this: .htaccess RewriteRule: two domains using same server and directory
Having that said, in most cases a static html page saying "This page has moved. Link to new page: ..." is preferred above .htaccess redirects, because people browsing your webpage will then update their bookmarks to the new URL, which they will not otherwise.

Domain Forwarding for specific URLs

I have a domain with GoDaddy called "livingmiracles.org". For years I had this domain forwarding to my livingmiraclescenter.org Joomla website. Recently, I discovered that the way the livingmiracles.org domain now forwards to our livingmiraclescenter.org site has changed and has left me with broken links on almost all of the over 60 websites I manage.
This is what used to happen:
Any URL of the livingmiraclescenter.org website would be able to be displayed with the livingmiracles.org domain instead. For example, the following URLs were interchangeable:
livingmiraclescenter.org/david-hoffmeister.html and
livingmiracles.org/david-hoffmeister.html
livingmiraclescenter.org/contact.html and
livingmiracles.org/contact.html
livingmiraclescenter.org/spiri-tv.html and
livingmiracles.org/spiri-tv.html
Also, variations of the above without ".html" would work.
Now, none of this works anymore. For the "livingmiracles.org/" links above, now, either the livingmiraclescenter.org home page pulls up or I get a GoDaddy error page.
I called GoDaddy and they confirmed a change in the way they handle domain forwarding now.
Can anyone suggest a simple/smart way—perhaps a RewriteRule or something like that—that I can set up somewhere (where?) to handle those specific page redirects? Basically, I want all my livingmiraclescenter.org links to be interchangeable with livingmiracles.org links like I wrote above in those examples.
Thank you so much!
Jutta

301 Redirect For SSL URL

301 redirect has me completely lost and confused so I would really appreciate if someone can help me with the code.
My website is www.dfwpcrepairs.com I recently purchased the SSL for my site and changed the site from plain HTML site to Wordpress. I kept all the URLs structures the same as they were before and used a plugin to keep the .html extensions in Wordpress for every URL/page on my site.
So Google Analytic tells me that I have a redundant URLs which I assume it is the non www and the www version of my site.
I want to redirect everything to the www/SSL version of my site/URL. Can someone please help me with the code for this?
I would greatly appreciate this.
Regards,
Rnaderpo
I would recommend you use a plugin for this instead of hacking into .htaccess file.
I personally use WordPress HTTPS (SSL) you can use any other you like.

Adding more than 1000 301 redirects in drupal site

I am using drupal 6.
I worked on the site revamp for one of our clients and we needed to redirect the old site urls to relevant new site urls so that we do not loose the traffic. I have used path redirect module for same and added some of the urls.
The issue is we have more than 1000 urls to be added and there is no specific pattern (as old site was in asp.) so it would be 1 to 1 mapping for redirect. Adding it in url alias table via path redirect module is something which is hitting the site performance and again it is a manual process.
Is there any other better and optimal solution for this scenerio?
http://drupal.org/project/path_redirect_import
This module has import feature out of the box.
I'm interpreting this question as a question of performance (not a question of the ease of populating many redirects). Please correct me if I've misunderstood your question.
Put redirects in .htaccess
If you're using Apache, then your alternative is to put the redirects directly into your .htaccess configurations. There should be a similar configuration option for this for IIS as well.
This still means that you would have to create the 1 to 1 mapping for each redirect you want, but the redirects are not stored in your database so it saves hits to the db.
Advantages to using Path Redirect module
Note that the Path Redirect module can log when a redirect was last accessed. This statistic/tracking can help you remove redirects that are no longer in use in the long run.
There are posts on the Path Redirect issue queue that suggest that 1000 redirects should not be a problem but every setup is different. You will need to perform your own benchmarking to check the performance of your particular site.

How do I redirect a domain to a specific "landing page"?

My client has several parked domains. She wants those domains to point to specific pages in her main site. For example:
Let's pretend she has a page on her main site about bedroom redecorating. That page is located at www.mainsite.com/bedrooms/
And let's say she has a parked domain called www.999bedrooms.com/
She wants to redirect that domain to www.mainsite.com/bedrooms/
What's the best way to do this without being penalized by the search engines?
Also, keep in mind that www.mainsite.com/bedrooms is actually a WordPress page, so it's not an actual file on the server, per se.
Thanks!
There are (at least) two ways to do this. One way requires access to some sort of configuration on the server, and the other doesn't. I don't know if you're using the Apache web server, but if you are, you would add mod_alias to your configuration and restart Apache:
a2enmod alias
apache2ctl graceful
Then add this to the VirtualHost section for 999bedrooms.com:
Redirect permanent / http://www.mainsite.com/bedrooms
Then you should be done.
The other way is in an HTML file that you put at http://999bedrooms.com/index.html, put a line like this within the HEAD section:
<meta http-equiv="refresh" content="1; url=http://www.mainsite.com/bedrooms">
This is one of those "Please wait while we redirect you to our main page" sorts of redirections that you see sometimes. Not as nice as the server-based ones, but easier to do.
Hope this helps!
Well there are a couple way. Most likely your web host supports the redirection for you using a 301 Redirect HTTP response. Check out your web host and see if they offer a directory redirection (I know that fastdomain which is my hosting provider does).
Alternatively, if you hosting provide supports PHP you can use the following and place it in a file called index.php in the top level of the domain you wish to redirect.
<?php
header("Location: http://www.mainsite.com/bedrooms/");
exit;
?>
Simply add this line to your header.php file:
<script language="JavaScript">document.location.href = "http://www.mainsite.com/bedrooms";</script>