Home arrow Forum

Remository Forum

 


Kenneth

Karma: 0  
Problem with RemoSEF ignoring .htaccess - 2006/10/07 19:59 Hello,
First of all I would like to say that you have made a great component that does not overload the DB! Keep up the good work!

But I have a problem with .htaccess when I have RemoSEF activated. I wanted to add a 404 page into my .htaccess file but it seems its being ignored.
My site url is http://software-today.com/ if you type in a ban url like software-today.com/afqwf it does only display the front page with that URL. That might punish sites for duplicate content.
I have added ErrorDocument 404 http://software-today.com/ in my .htaccess so the wrong url gets redirected but it does not work neither.
Do you have any solution for this?

Kenneth

Post edited by: kenneth, at: 2006/11/01 16:40
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Problem with RemoSEF ignoring .htaccess - 2006/10/09 20:51 You're absolutely right, but this is a general problem with the approach long adopted by SEF Advance and then promoted by Joomla (and formerly by Mambo) for 3rd party SEF in general.

The issue is not specifically with Remosef, but with the .htaccess recommended for use with 3PD SEF. The trouble is that anything that is not a file or directory has its URL rewritten to invoke index.php. The rest of the URL is then decoded as the query string.

Trouble is, if there is any invalid URL (which may well happen) then the 404 mechanism is defeated by the URL rewriting in .htaccess. Invalid URLs typically cause the site to show the home page, and give a good header.

The unfortunate SEO consequences are as you say. Mambo 4.6 (quite a lot of which I wrote) has SEF based on Remosef, but all SEF URLs have one of three prefixes immediately after the site. They have to be content, component or a site specific prefix (mos by default). Anything that doesn't fit that pattern falls into the standard Apache 404 mechanism. In addition, for those URLs that are accepted, the SEF logic is capable of returning a 404 header it the decoding turns out impossible.

I'm hoping to write a new version of Remosef for Joomla that has these features (Mambo users don't need it, because 4.6 is the same thing). Can't promise time scales though
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
Kenneth

Karma: 0  
Re:Problem with RemoSEF ignoring .htaccess - 2006/10/09 21:25 Thanks for your reply!

Post edited by: kenneth, at: 2006/10/11 16:18
  | | Sorry, you do not currently have permission to write here.

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 9 guest online