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
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
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...
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...
Comments on Trying to mod_rewrite category name
Member
Usergroup: Customer
Joined: Sep 29, 2005
Total Topics: 7
Total Comments: 20
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
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.)
Member
Usergroup: Customer
Joined: Sep 29, 2005
Total Topics: 7
Total Comments: 20
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?
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
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?
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
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]
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
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.
Member
Usergroup: Customer
Joined: Sep 29, 2005
Total Topics: 7
Total Comments: 20
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...
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
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.
Beginner
Usergroup: Customer
Joined: Oct 04, 2005
Total Topics: 2
Total Comments: 5
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Your rewrite base value is most likely wrong. You can always ask your web host.