Menu

Build a Joomla Website Forum

Free Joomla support for all and priority support for members.
  1. Blake Burroughs
  2. Priority Support
  3. Thursday, May 19 2016, 02:54 AM
  4.  Subscribe via email
Greetings!

I am trying to redirect two easyblog post links from a Joomla site to 2 posts on a new wordpress site. I have spent hours online with my hosting provider, and I finally got someone who told me that the issue is with joomla because that file path doesn't exist- the pages end in .html and Joomla doesn't use .html. He said I need the direct links to redirect them or something...?

The pages I am trying to redirect:
From:
http://www.okcomputersolution.com/easyblog/windows-7-performance-tips-enable-high-performance-mode.html
To:
http://www.computerrepairwaco.net/windows-7-performance-tips-enable-high-performance-mode/
& From:
http://www.okcomputersolution.com/easyblog/windows-7-quick-tips-disable-aero-to-increase-system-speed.html
To:
http://www.computerrepairwaco.net/windows-7-quick-tips-disable-aero-increase-system-speed/

Thank you for your help!
Accepted Answer
Tristan Montano Accepted Answer
0
Votes
Undo
Hi Blake,

So I have moved my business and I have 2 blog posts that I want to redirect to my new sight, since they get a couple thousand clicks a month, and it seems like that would help drive my SEO up for the new site.


Okay, that makes a little more sense. You will need to set up what is known as a "301" or Permanent redirect in order to maintain your SEO rankings. For that, you'll need to add some directives in the .htaccess file of your old site, essentially telling the server to redirect all requests to their equivalent in the new site. You will need to maintain the old server and domain name with the .htaccess file for a while. You'll need to ask an SEO expert for how long.

Check out the tutorial on 301 redirects in the References Link.
References
  1. http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm
Comment
There are no comments made yet.
  1. more than a month ago
  2. Priority Support
  3. # Permalink
Blake Burroughs Accepted Answer
0
Votes
Undo
Tristan-- moving the redirects to the top of the htaccess file fixed the issue. Thanks for your help!
Comment
There are no comments made yet.
  1. more than a month ago
  2. Priority Support
  3. # 1
Blake Burroughs Accepted Answer
0
Votes
Undo
Here is my htaccess:

##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Use PHP 5.4
AddHandler application/x-httpd-php54 .php

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Redirect non-.www to .www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^okcomputersolution\.com
RewriteRule ^(.*)$ http://www.okcomputersolution.com/$1 [R=permanent,L]

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
##301 Redirect Old File

## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

# Cache static content for 1 MONTH
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4|css|js|txt|xml)$">
Header set Cache-Control "public"
Header set Cache-Control "max-age=2592000, public"
Header unset Last-Modified
</FilesMatch>

# Remove ETag headers
Header unset ETag
FileETag None

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/bburro
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>

RewriteCond %{HTTP_HOST} ^okcomputersolution\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.okcomputersolution\.com$
RewriteRule ^easyblog\/windows\-7\-quick\-tips\-disable\-aero\-to\-increase\-system\-speed\.html$ "http\:\/\/www\.computerrepairwaco\.net\/windows\-7\-quick\-tips\-disable\-aero\-increase\-system\-speed\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^okcomputersolution\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.okcomputersolution\.com$
RewriteRule ^easyblog\/windows\-7\-performance\-tips\-enable\-high\-performance\-mode\.html$ "http\:\/\/www\.computerrepairwaco\.net\/windows\-7\-performance\-tips\-enable\-high\-performance\-mode\/" [R=301,L]
Comment
There are no comments made yet.
  1. more than a month ago
  2. Priority Support
  3. # 2
Blake Burroughs Accepted Answer
0
Votes
Undo
Tristan- that won't work. The 301s do nothing. I was told that it is because the file path doesn't exist- easyblog is creating a link- the blah-blah-blah.html but there is no .html file on the site to redirect...?

I'm at a loss. I let my Easyblog subscription expire years ago, so I have to pay for their support. I don't see what the problem is...? Seems like this should be easy.

I have had Hostgator use cpanel to add the redirects themselves, after failing myself multiple times. Once the guy found out it was a Joomla site and the file didn't "exist" he quickly told me he couldn't help me.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Priority Support
  3. # 3
Blake Burroughs Accepted Answer
0
Votes
Undo
Tristan- Glad to hear back! Thanks!

So I have moved my business and I have 2 blog posts that I want to redirect to my new sight, since they get a couple thousand clicks a month, and it seems like that would help drive my SEO up for the new site.

After a few weeks I will be turning off the old site. Does that make sense? Is that what/how you would do it?

What i mean is I want the "from" address to redirect to the "to" address- does that make sense?

Thanks again!
Comment
There are no comments made yet.
  1. more than a month ago
  2. Priority Support
  3. # 4
Tristan Montano Accepted Answer
0
Votes
Undo
Hi Blake,

Where on your 'from' pages are the links to the 'to' pages? Also, why are you maintaining 2 different sites on two different platforms with the same content?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Priority Support
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Free Joomla TutorialLearn Joomla for free with our 16 lesson, 2 hour course.

Get Started