Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
301 Redirect and Joomla
Old 02-08-2010, 09:11 AM 301 Redirect and Joomla
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Hi - I have just written a new site and it is currently on a testing server about to be deployed to the actual domain - the testing site is www.techhome.co.uk the site its moving to is www.manninghamconcrete.co.uk i need to perform a 301 redirect so that all the old pages point to the new ones - so im guessing that i will have to redirect all pages from the old to the new. The new site is using Joomla as a back end and i got a bit confused with the .htaccess file on there - do i just add another load of individual redirects to the bottom of the joomla file - so if i wanted to redirect this : http://www.manninghamconcrete.co.uk/...lesroofing.htm
to this : http://www.manninghamconcrete.co.uk/...l/roofing.html -it would be written as

Redirect 301 /manningham-eccleshill/roofing.html http://www.manninghamconcrete.co.uk/manningham-eccleshill/roofing.html

for each occurence - or would i have to put something else in the Joomla .htaccess? would i also have to put the full path from the old file?
The .htaccess currently is below:

Thanks.

##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

################################################## ###
# 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.
#
################################################## ###
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## 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 set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%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})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# 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
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

Redirect 301 /manningham-eccleshill/roofing.html http://www.manninghamconcrete.co.uk/manningham-eccleshill/roofing.html
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-15-2010, 02:32 AM Re: 301 Redirect and Joomla
L a r r y's Avatar
Super Talker

Posts: 103
Name: Larry K
Location: Arizona
Trades: 0
I am thinking that all you need to do is replace the Joomla .htaccess on the test server with:

Redirect Permanent / http://www.manninghamconcrete.co.uk/

Anything coming to your test server's Joomla site will simply be redirected to your new site without ever loading the Joomla code on the test server.
L a r r y is offline
Reply With Quote
View Public Profile Visit L a r r y's homepage!
 
Old 02-15-2010, 09:34 PM Re: 301 Redirect and Joomla
SpecHosting's Avatar
Super Talker

Posts: 142
Name: Tanner Bradley
Location: Knoxville Tennessee
Trades: 0
Larry is correct, which type of Web Hosting Panel do you use, if you use Cpanel it can be done across the entire domain, if not you might have to edit the .htaccess and redirect from there. However, I would strongly recommend you use a Cpanel web hosting provider, it is the best panel and offers many amenities that other panels do not offer. Hope this helps!
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Servers Dedicated Servers

Please login or register to view this content. Registration is FREE
Now Offering: FREE WHMCS Licenses|FREE SSL Certificate|End User Support

SpecHosting is offline
Reply With Quote
View Public Profile
 
Old 02-16-2010, 08:32 AM Re: 301 Redirect and Joomla
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
which type of Web Hosting Panel do you use, if you use Cpanel it can be done across the entire domain, if not you might have to edit the .htaccess and redirect from there. However,
NOPE!

You do NOT have to be using any particular "control panel"!

To use .htaccess to redirect your site needs to be hosted on Apache.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-22-2010, 12:54 AM Re: 301 Redirect and Joomla
L a r r y's Avatar
Super Talker

Posts: 103
Name: Larry K
Location: Arizona
Trades: 0
I have cPanel on my server, and I have found that using it will upset the custom .htaccess edits that I have in place, and therefore I just edit .htaccess.

If the OP is running his test server on Apache, all he needs to do is as I stated above; replace the contents of .htaccess with that one Redirect line. On that I agree with Chris.

(One custom edit is the deployment of code to redirect www to no www.)
L a r r y is offline
Reply With Quote
View Public Profile Visit L a r r y's homepage!
 
Reply     « Reply to 301 Redirect and Joomla
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17082 seconds with 12 queries