Webmastersite.net
Register Log In

Trying to mod_rewrite category name
help, anybody know how to mod_rewrite

Comments on Trying to mod_rewrite category name

freshwill
Member

Usergroup: Customer
Joined: Sep 29, 2005

Total Topics: 7
Total Comments: 20
Posted Sep 30, 2005 - 2:08 AM:

this from the >search & SEO area.

links/{LINKTITLE}-{LINKID}.html

i replace links w/ {CATNAME} so the link would display

categoryname/linkname-linkid.html

but... when clicked, i get

'Not Found
The requested URL /Category Name/Link_ID-1.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "

can anybody help me with getting this rewrite to work? i really don't want to display 'links/' or any other text.. i want the actual category name.

thanks
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Oct 01, 2005 - 11:55 AM:

mod-rewrite doesn't work for me. It converts the categories into www.domain.com/directory/Category but clicking those gives 404's. I can't see what the issue is... .htaccess seems fine (have tried various different base url options), my server supports mod-rewrite... so I have no idea what the problem could be
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 01, 2005 - 1:39 PM:

Please undo your changes and simply select 'use category names in url' instead. (Link details, of course, don't use category names in the url.)
freshwill
Member

Usergroup: Customer
Joined: Sep 29, 2005

Total Topics: 7
Total Comments: 20
Posted Oct 01, 2005 - 2:56 PM:

Hi, so basically we cannot display the category name in the link details (i.e http://www.yourwebsite.com/CatogryName/Linkname-ID.html)

and it's always going to show:

http://www.yourwebsite.com/links/Linkname-ID.html

where 'links' stay the same forever?
mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Oct 02, 2005 - 1:28 AM:

Freshwill, You can change "links" to whatever word you want. See seo area of your admin panel and change the relavent part of htaccess.

Capitaine, just to be sure - In your admin panel you set it to use category names in url and renamed htaccess.txt to .htaccess and you have some sort of linux/unix box?

If you have done that and it still doesn't work have you tried changing

#RewriteBase /

to

RewriteBase /

in your htaccess?
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Oct 02, 2005 - 1:54 AM:

yep, i set the 'cat names in url', renamed htaccess.txt, am on Free BSD with mod-rewrite loaded, uncommented the RewriteBase, even tried RewriteBase directory/

... I can see it changes the url's, as I mention above, but it results in 404's...

[shrug]
mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Oct 02, 2005 - 2:12 AM:

Just a thought, in your httpd.conf what is AllowOverride set to?
All or None?

If it is set to none currently, then you should give it a shot as all. Be sure to set it back to none if it doesn't work.

This should have nothing to do with mod-rewrite, but I *think it helped me once.

freshwill
Member

Usergroup: Customer
Joined: Sep 29, 2005

Total Topics: 7
Total Comments: 20
Posted Oct 02, 2005 - 3:33 PM:

hi mrowton, thanks for the input. What if i didn't want the word 'links' or whatever else verbage in there but the specific category name that the link is in? From what i gathered, that might not even be possible...
mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Oct 02, 2005 - 7:50 PM:

That is not possible. You can replace it with a single word of your choosing, but you can't replace it with whatever category the link is in.
raeyo
Beginner

Usergroup: Customer
Joined: Oct 04, 2005

Total Topics: 2
Total Comments: 5
raeyo
#10 - Quote - Permalink
Posted Oct 07, 2005 - 1:01 AM:

Same problem here like Captaine using version 3.2.7

Sometime I can edit the links, sometimes I don't (404-page).
My impression is that when you use subcategory 's you have this issue.

Raeyo
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Oct 07, 2005 - 3:51 PM:

Your rewrite base value is most likely wrong. You can always ask your web host.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.