Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 09:47 pm EST
Geeklog Forums
.htaccess URL rewrites and trailing /
Status: offline
winnerdk
Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
I was looking at the error log files today and noticed some users were getting 404 errors for URL's that I thought should have been working.
A long time ago I did the .htaccess hack for SEO reasons, for example;
RewriteRule ^corruption/$ /index.php?topic=corruption [NC,L]
But then I noticed today (by looking at the error logs) if the trailing / is not included, then the user gets the 404 error. So; this URL works;
http://www.panama-guide.com/corruption/
While this one does not;
http://www.panama-guide.com/corruption
My question - how can I make them both work?
Don
www.panama-guide.com
A long time ago I did the .htaccess hack for SEO reasons, for example;
RewriteRule ^corruption/$ /index.php?topic=corruption [NC,L]
But then I noticed today (by looking at the error logs) if the trailing / is not included, then the user gets the 404 error. So; this URL works;
http://www.panama-guide.com/corruption/
While this one does not;
http://www.panama-guide.com/corruption
My question - how can I make them both work?
Don
www.panama-guide.com
12
10
Quote
All times are EST. The time is now 09:47 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content