sitemap  |  contact

Sakic.Net Forum
08 January 2009, 19:20 *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Introducing AJAX Scroller - Joomla News Slider Module: http://www.sakic.net/news/introducing_ajax_scroller/
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Redirect 301 of the old url  (Read 3064 times)
riga75
Newbie
*
Posts: 15



View Profile WWW
« on: 27 May 2007, 23:12 »

the component has the possibility to make redirect the 301 of the URL? Thanks mlle
Logged

Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #1 on: 30 May 2007, 00:32 »

Please read the documentation.
Logged

riga75
Newbie
*
Posts: 15



View Profile WWW
« Reply #2 on: 30 May 2007, 01:06 »

Please read the documentation.

excuse but where I find it?
Logged

Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #3 on: 30 May 2007, 18:57 »

http://www.sakic.net/products/sef_advance/documentation/
Logged

riga75
Newbie
*
Posts: 15



View Profile WWW
« Reply #4 on: 31 May 2007, 20:36 »


excuse a lot my ignorance but I have not understood. I have activated and it does not go.
 Thanks
Logged

Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #5 on: 31 May 2007, 22:20 »

Quote
Old links
---------
All links within Joomla! / Mambo will be automatically changed to the SEF Advance URLs as you install the component.
Even all relative internal links within Joomla! / Mambo content will be automatically translated (4.5.1 or higher).
However you might have many static old-style SEF links in your documents and spread all around internet
which are not so easy to change. SEF Advance will take care of them and automatically redirect all requests
for old links to their correspondent advanced URLs. The correct Permanent Redirect header will be returned
so search engines will know that they need to replace old links.

Example: http://joomla.sakic.net/content/view/1/2/ will redirect to http://joomla.sakic.net/the-news/latest-news/welcome-to-joomla!/
Logged

riga75
Newbie
*
Posts: 15



View Profile WWW
« Reply #6 on: 31 May 2007, 23:13 »

ok I have understood but in the event in which the URL they were for example:
http://joomla.sakic.net/index.php?option=com_content&task=category&sectionid=9&id=81&Itemid=145 and not
http://joomla.sakic.net/content/view/1/2/
the redirect would work the same one?
Logged

Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #7 on: 01 June 2007, 03:06 »

Non-sef URLs will not redirect. Only old SEF links.
Logged

zoro
Newbie
*
Posts: 18


View Profile WWW
« Reply #8 on: 31 January 2008, 17:45 »

In the Custom component strings I changed from mtree=>business to mtree=>directory
and changed Alias from business to directory

and defined in Redirects:

Source URL: business/
Target URL: directory/
Type: 301 Moved Permanently

How come the old SEF Advanced URLs containing prefix business/ gave me error 404: Not Found instead of replacing them to URLs containing prefix directory/    Huh

I have tried to define the full URL but got the same error, eg business/abc.html and directory/abc.html

I have read SEF Advance Help and this Forum, but do not know what I did wrong or what/where else should I define ? I am using version 5.5.5 and any help would be much appreciated.
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #9 on: 31 January 2008, 19:02 »

Defining the full URL correctly should work. It will not work for business/* -> directory/*, every URL needs to be redirected separately. More advanced redirects must be set in .htaccess.
Logged

zoro
Newbie
*
Posts: 18


View Profile WWW
« Reply #10 on: 01 February 2008, 02:54 »

I have removed Redirect definations in SEF Advance and used cPanel > Domains > Redirects tool to define permanently (301) and checked redirects with and without www:

abc.com/business => http://www.abc.com/directory

Then used FTP to check .htaccess file that has been inserted automatically by cPanel the last 3 lines at the bottom:

DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php

RewriteCond %{HTTP_HOST} ^abc.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.abc.com$
RewriteRule ^directory/$ http://www.abc.com/business/ [R=301,L]

I then used FireFox browser to visit a valid SEF Advance URL, then replaced in the URL the folder name /business/ with /directory/ and pressed enter (and later refresh button), but I still got error 404: Not Found !!

--
I have tried with the slash / after folder names but got the same error 404:
abc.com/business/ => http://www.abc.com/directory/

I have also tried with the wildcard * after folder name/ but got the same error 404:
abc.com/business/* => http://www.abc.com/directory/*

RewriteCond %{HTTP_HOST} ^abc.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.abc.com$
RewriteRule ^directory/?(.*)$ http://www.abc.com/business/$1 [R=301,L]

Help please !
Logged
zoro
Newbie
*
Posts: 18


View Profile WWW
« Reply #11 on: 01 February 2008, 03:01 »

Sorry the last line in each case should have been as follows but still did not work:

RewriteRule ^business/$ http://www.abc.com/directory/ [R=301,L]

RewriteRule ^business/?(.*)$ http://www.abc.com/directory/$1 [R=301,L]
Logged
zoro
Newbie
*
Posts: 18


View Profile WWW
« Reply #12 on: 01 February 2008, 04:39 »

The below simple format (put in .htaccess) works but I do not know if there are any hidden disadvantages:

Redirect permanent /olddirectory http://www.domain.com/newdirectory
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,352


View Profile WWW
« Reply #13 on: 01 February 2008, 06:18 »

Sorry the last line in each case should have been as follows but still did not work:

RewriteRule ^business/$ http://www.abc.com/directory/ [R=301,L]

RewriteRule ^business/?(.*)$ http://www.abc.com/directory/$1 [R=301,L]

Put this code above the SEF Advance block, i.e. right after the lines 'RewriteEngine On' and 'RewriteBase /'.
Logged

Pages: [1]
  Print  
 
Jump to: