Do you have a trailing slash on your directory url at Settings->System? If so remove it. The directory url needs to not have any trailing slash... actually it automatically removes any trailing slash someone tries to add, but maybe back in 4.0.7 it didn't yet.
I see your directory doesn't work without trailing slashes, which means you have a bad rewrite base value. Are you allowing it to write its own .htaccess? It'll autocalculate the right base. Perhaps you haven't submitted the SEO settings page since upgrading to 4.0 in order to get it written.
I changed something (maybe in .htacess or some .js file), that added a slash at the end of the new SEO directory names - and that part works.
You need to get rid of that, whatever it was. That sort of hack is a really bad way to deal with the site not working without trailing slashes, and is no doubt causing the problem here. You need to fix your htaccess rewrite base, or simply let the SEO page do it itself.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Problem with trailing slashes
Experienced
Usergroup: Customer
Joined: Jul 28, 2005
Total Topics: 30
Total Comments: 55
How can I remove an extra trailing slash in the page number links at the bottom of the categories pages?
Right now if I click on one of the page numbers, like this:
Page: 1 2 3
It'll try to take me to a page using an extra slash, like here:
http://www.elementlist.com/lnx/science_job_search//2
How do I get rid of the extra slash?.
By the way, I had to add a slash to fix another problem. So I really only want to remove the extra slash in this instance, not globally
Thx.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Do you have a trailing slash on your directory url at Settings->System? If so remove it. The directory url needs to not have any trailing slash... actually it automatically removes any trailing slash someone tries to add, but maybe back in 4.0.7 it didn't yet.
I see your directory doesn't work without trailing slashes, which means you have a bad rewrite base value. Are you allowing it to write its own .htaccess? It'll autocalculate the right base. Perhaps you haven't submitted the SEO settings page since upgrading to 4.0 in order to get it written.
Experienced
Usergroup: Customer
Joined: Jul 28, 2005
Total Topics: 30
Total Comments: 55
There isn't an extra slash in the Settings->System Configuration, "Installation URL" field, if that's what you mean.
I changed something (maybe in .htacess or some .js file), that added a slash at the end of the new SEO directory names - and that part works.
The part that doesn't work is the pagination.
The links end with something like .../category//2 for the second page of the category instead of .../category/2, with just one slash.
I'd like to know where to get rid of that extra slash.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I changed something (maybe in .htacess or some .js file), that added a slash at the end of the new SEO directory names - and that part works.
You need to get rid of that, whatever it was. That sort of hack is a really bad way to deal with the site not working without trailing slashes, and is no doubt causing the problem here. You need to fix your htaccess rewrite base, or simply let the SEO page do it itself.