Menu Content

Podpora

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

redirects 301 not working www.drummersweb.com
(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: redirects 301 not working www.drummersweb.com

redirects 301 not working www.drummersweb.com 14 years, 11 months ago #9676

I made redirects in the "manage 301 redirects" section of JoomSef.

Url from /asp/index.asp?chapter=1
Url to www.drummersweb.com/used-drums-for-sale/...order=0&expand=0

But I keep getting a nasty 404.0 (see image or try www.drummersweb.com/asp/index.asp?chapter=1) I'm sure it is a setting somewhere...... but where ???

Also I find it strange that it is impossible for me to edit and safe the "Edit .access" tab in JoomSef. perhaps this is related to my problem?

Thanks in advance for ideas.

Regards
Erik
Attachments:
The topic has been locked.

Re:redirects 301 not working www.drummersweb.com 14 years, 11 months ago #9679

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

The 301 redirect will not work with additional parameters like ?chapter=1. You would probably need to use the 301 redirect in .htaccess file.
Also the "Url to" field of "Manage 301 redirects" expects path relative to site's root, like: "used-drums-for-sale/drumsets.html?order=0&expand=0".

Not being able to save the .htaccess file is often related to wrong permissions set on the .htaccess file, so JoomSEF cannot modify it. The .htaccess file has to be writable from Apache for this feature to work correctly.

Best regards,
ARTIO Support Team
ARTIO Support Team
The topic has been locked.

Re:redirects 301 not working www.drummersweb.com 14 years, 10 months ago #9786

It seems somewhat odd that the 301 redirect feature of this component doesn't allow you to do this as part of the core functioning - yet by the sounds of the response you could manually do it in the htaccess file?

I (like many others I suspect) am in the process of migrating from non-joomla to Joomla and I need to redirect the old .php?blah=1 links to the new URL's - are you saying that this has to all be done manually in the htaccess file? :| If so, how, I've tried every possible method including using manual rewrites and none work.

What exactly is the 301 feature for, if not to permanently redirect URL's from one to another?

Ruth
Last Edit: 14 years, 10 months ago by RCheesley.
The topic has been locked.

Re:redirects 301 not working www.drummersweb.com 14 years, 10 months ago #9790

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

The 301 redirects feature was supposed to handle cases when you manually change some of the automatically generated SEF URLs, so it automatically creates a 301 redirect from the old URL to your new manually set URL, so you don't lose your indexes in google.

However we will add this to our list of requested features.

The only option at the moment is probably to add custom rule for every redirect to your .htaccess file like this:

RewriteCond %{QUERY_STRING} ^chapter=1$
RewriteRule ^asp/index.asp$ www.drummersweb.com/used-drums-for-sale/...order=0&expand=0 [L,R=301]

Hope this helps a bit.

Best regards,
ARTIO Support Team
ARTIO Support Team
The topic has been locked.

Re:redirects 301 not working www.drummersweb.com 14 years, 10 months ago #9830

Hi,

Thanks for this suggestion, I already tried this after google searching, but it just redirects to the homepage and not to the intended article.

Original URL: www.issba.co.uk/index.php?tem=3
New URL: www.issba.co.uk/index.php?option=com_con...rticle&Itemid=59 (or www.issba.co.uk/about-us/about-us if SEF'd but neither work).

Redirect applied:

RewriteCond %{QUERY_STRING} ^tem=3$
RewriteRule ^/index.php$ www.issba.co.uk/index.php?option=com_con...rticle&Itemid=59 [L,R=301]

Any suggestions?

Ruth
The topic has been locked.

Re:redirects 301 not working www.drummersweb.com 14 years, 10 months ago #9832

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

Well on my server I have to remove the starting slash in the RewriteRule section, like this:

RewriteRule ^index.php$ ....

Then it works like a charm. If that's not the problem, maybe some configuration of your server is the cause. Also, where in the .htaccess file did you put the code? It should be right after the RewriteBase and before the Joomla's RewriteCond section. My .htaccess looks like this:

DirectoryIndex index.php
RewriteEngine On
RewriteBase /
 
RewriteCond %{QUERY_STRING} ^tem=3$
RewriteRule ^index.php$ http://www.issba.co.uk/index.php?option=com_content&catid=35&id=50&view=article&Itemid=59 [L,R=301]
 
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]
 
########## 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
 


Best regards,
ARTIO Support Team
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný