Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Any redirect will not work?
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Any redirect will not work?

Any redirect will not work? 13 years, 9 months ago #20164

  • mito
  • OFFLINE
  • Posts: 8
I am wondering why there is no one redirect working on my joomla 1.5.22 website with artio paid version 3.7.6

Components>Artio Joomsef>Manage 301 redirects>New >Moved from URL : myoldurl.com Moved to URL mynewurl.com

Just doesnt work!

Please help guys

thanks in advance
The topic has been locked.

Re: Any redirect will not work? 13 years, 9 months ago #20252

  • jaku
Hello,

the redirect only working "within" a domain.
So you can rerect e.g.
somesite.com/some-old-url
to
somesite.com/new-url

but you cannot use 301 redirects for domain redirects. For such, you need to use rewrite rules, that need to be put directly to .htaccess file.
You can use JoomSEF .htaccess editor to add them.

More about this at
httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html
Last Edit: 13 years, 9 months ago by .
The topic has been locked.

Re: Any redirect will not work? 13 years, 9 months ago #20260

  • mito
  • OFFLINE
  • Posts: 8
Hi Jan and thanks for your reply

Sorry I wasnt clear in my first message, yes I am trying to redirect from somesite.com/some-old-url to somesite.com/new-url

Here is my .htaccess file, can you please tell me what's the rule to write to make the 301 redirects work on artio joomsef 3.7.6?

Many thanks

##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license 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


# 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


########## 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
Last Edit: 13 years, 9 months ago by mito.
The topic has been locked.

Re: Any redirect will not work? 13 years, 9 months ago #20351

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

In JoomSEF's configuration on the Advanced tab, make sure that "Use Moved Permanently redirection table" is enabled. Then make sure that you use the correct format of your 301 redirects like this:
Moved from URL: some-old-url
Moved to URL: new-url

It needs to be the relative SEF URL (without any PHP variables like ?var=value), without the domain and without the leading slash.

Best regards,
ARTIO Support Team
ARTIO Support Team
Last Edit: 13 years, 9 months ago by dajo.
The topic has been locked.

Re: Any redirect will not work? 13 years, 9 months ago #20363

  • mito
  • OFFLINE
  • Posts: 8
Hi David and thanks for you answer

The "Use Moved Permanently redirection table" was already enabled on the advanced tab of joomsef configuration, I have done what you wrote before but unfortunately it still doesnt work

I tried all these combinations but they dont work

from someoldurl to newurl
from someoldurl to category/newurl

from someoldurl to newurl.html
from someoldurl to category/newurl

from someoldurl to newurl.html
from someoldurl to category/newurl.html

from someoldurl/ to newurl.html
from someoldurl/ to newurl

from category/someoldurl/ to category/newurl.html
from category/someoldurl to category/newurl.html

Do you think this issue could be related to the .htaccess file as suggested above by jan?

Many Thanks
The topic has been locked.

Re: Any redirect will not work? 13 years, 8 months ago #20525

  • jaku
Hello,
maybe you could give a specific example of redirection that does not work for you.
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný