Menu Content

Podpora

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

301 Redirect not working
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 4 (Joomla 1.6/1.7/2.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: 301 Redirect not working

301 Redirect not working 11 years, 10 months ago #31164

I am trying to redirect the non trailing slash version of my url to the version with a slash, but I can't seem to get it working.
www.internationallovescout.com/gallery/african/benin
Should be
www.internationallovescout.com/gallery/african/benin/

I have tried 3 different ways:

1. Using the "Alias" feature - I put this in there:
gallery/african/benin

This worked when I was using Joomsef 3 and joomla 1.5 - but when I upgraded my site to Joomla 2.5 and Joomsef 4 it stopped working.

2. I tried an internal 302 redirect

Moved from URL - gallery/african/benin
Moved to URL - gallery/african/benin/

That doesn't work either. The "Last Used" shows "never"
I do have other internal 301 redirects that are working

3. I tried doing a 301 redirect in my .htaccess
redirect 301 /gallery/african/benin www.internationallovescout.com/gallery/african/benin/

And that gave me an Internal Server Error.

Any idea what's going on here?
The topic has been locked.

Re: 301 Redirect not working 11 years, 10 months ago #31204

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,
Thank you for your report. The first two options don't work because of the way Joomla 2.5 handles URLs, so we'll need to implement some workaround.
For the third way, make sure there's also the "" part present in redirected URL.
ARTIO Support Team
The topic has been locked.

Re: 301 Redirect not working 11 years, 10 months ago #31224

I meant to write:

redirect 301 /gallery/african/benin www.internationallovescout.com/gallery/african/benin/

It does not work.

I don't understand what you mean by:

For the third way, make sure there's also the "" part present in redirected URL.

So, is there a work around - google webmaster tools is show the slash and non slash as duplicate content. That's really bad for my search engine rankings.

Thanks
The topic has been locked.

Re: 301 Redirect not working 11 years, 10 months ago #31248

  • dajo
  • OFFLINE
  • Posts: 5069
Sorry, it seems that the
http://
text is being turned into link in our forum. Your .htaccess should look like:
redirect 301 /gallery/african/benin http://www.internationallovescout.com/gallery/african/benin/


There's an option in JoomSEF to handle duplicate content caused by trailing slash the other way around - URLs with trailing slash are redirected to URLs without it. In JoomSEF's Configuration on the Advanced tab enable the "Remove trailing slash" option.
ARTIO Support Team
The topic has been locked.

Re: 301 Redirect not working 11 years, 10 months ago #31314

Yeah - that is what I've been trying. When I use that redirect I get an Internal Server Error and the url in my browser looks like this:

www.internationallovescout.com/gallery/african/benin////////
The topic has been locked.

Re: 301 Redirect not working 11 years, 10 months ago #31321

  • dajo
  • OFFLINE
  • Posts: 5069
It seems that mod_alias can't handle this correctly.
Until we fix the problem with trailing slashes handling in JoomSEF, please either use the "Remove trailing slash" option I've mentioned in my previous post, or it should be possible to handle this using mod_rewrite's RewriteCond and RewriteRule directives in your .htaccess file. The exact configuration is out of scope of our free support, for more information see: httpd.apache.org/docs/current/mod/mod_rewrite.html
Or if you are interested, we could configure it for you as a paid service: www.artio.net/e-shop/support-services/joomla-related-support-1h
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný