logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

mod_rewrite problem on just one category
"Bad request" error on SEO-friendly link

Version: 4.1.37


mod_rewrite problem on just one category
impurist
Member

Usergroup: Customer
Joined: Feb 18, 2008
Total Topics: 7
Total Posts: 29
Posted 04/04/08 - 02:35 PM:
quote post
#1
This is very strange:

I've been using the mod_rewrite function and it has been working fine up to now. I recently added two new categories - one of them works fine, but the other one creates a broken link. When I load the SEO-friendly URL, I receive a "Bad request" error. However, the category page is reachable through the full link. (index.php?action=displaycat&catid=51) All of the other category links work fine.

I tried doing a full regenerate and clearing the cache, but that did not fix the problem. I also tried deleting the category and creating it again, but I get the same problem. I also made sure to update my .htaccess with the new upgrade. (Problem occurred in both 4.1.34 and 4.1.37) Is there anything else I should check on to troubleshoot this?

Thanks
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/04/08 - 07:52 PM:
quote post
#2
I obviously need to know the details of the category at issue.
impurist
Member

Usergroup: Customer
Joined: Feb 18, 2008
Total Topics: 7
Total Posts: 29
Posted 04/05/08 - 03:36 PM:
quote post
#3
It is a regular, top level category with no secondary categories. All category settings are set to my defaults. There is nothing different about this category from the other categories in my directory. Here is the link to the seo-friendly URL and here's the link to the full URL. (Warning: contains adult material) Let me know what other details you need.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/06/08 - 02:45 PM:
quote post
#4
Odd. Have you tried resubmitting the SEO settings page (to make sure the htaccess is up to date)?

I guess I'll have to step through it by FTP: http://scripts.webmastersite.net/wsnlinks/index.p...
impurist
Member

Usergroup: Customer
Joined: Feb 18, 2008
Total Topics: 7
Total Posts: 29
Posted 04/07/08 - 01:00 AM:
quote post
#5
I tried resubmitting the SEO page, several times with different permissions on my .htaccess. Each time I also regenerated categories, but the link still is broken.

I submitted login details to you. Sometimes that ftp address may not work, so try using "ftp1" as the prefix instead of "ftp" if it isn't working.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/07/08 - 03:35 PM:
quote post
#6
You set it to rewrite ampersands as "and". As the instructions there say, you have to choose something unique -- the way you did it, anything containing "and" in the URL is presumed to have & in the category name instead. So it looks for a category named "H&jobs" which doesn't exist.
impurist
Member

Usergroup: Customer
Joined: Feb 18, 2008
Total Topics: 7
Total Posts: 29
Posted 04/07/08 - 06:19 PM:
quote post
#7
Thanks Paul, I see what the problem was. There were no ampersands in the category name, so I figured that nothing would be replaced. Since the setting says "Replace ampersands with", it's not made clear that anything besides an ampersand will be replaced.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/07/08 - 08:23 PM:
quote post
#8
Several people have run into the same trouble before, so I'm adding a test that'll search existing categories for any instance of the ampersand rewrite term and refuse to accept the value if there are categories already using it.

Nothing besides an ampersand will be replaced in the category name. The problem is that the replacement of the ampersand has to be reversible in order to figure out what category was being referenced by the ampersand-free url (unless {CATID} is included in the rewrite scheme so that it can just jump to an id number).

Edited by Paul on 04/07/08 - 08:27 PM
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.