View Full Version : Keeps adding Cat and subcat to end of url - url rewrite
mgiroir
06-18-2005, 05:54 PM
Hi,
I have set up a few cats and subcats and from index.php, when I click on either the main cat or any of the subcats it adds them like this to the end of the url ( /mycat/mysubcat/ ). Now as far as I can see this is what's supposed to happen. However, say I click on mycat from index.php... The url is now ( *.com/directory/mycat/ ) and the page looks identical to the index.php page. Then when I click on mycats again, the url looks like this ( *.com/directory/mycat/mycat/ )
This is what clicking on one of the subcats twice looks like:
( *.com/directory/mycat/subcat/mycat/subcat/ )
and clicking on it three times:
( *.com/directory/mycat/subcat/mycat/subcat/mycat/subcat/ )
This does not happen with url rewrite disabled. Anyone have any ideas?
Ap0s7le
06-19-2005, 05:10 AM
Hello mgiroir,
Can you please post a link to the site this is on?
Thank you.
mgiroir
06-19-2005, 05:47 AM
sure, I moved it to a subdomain for now.
Ap0s7le
06-19-2005, 06:51 AM
How does your htaccess look in that directory?
I tried to access it, told me the file doesn't exist.
If your htaccess is missing, that can lead to a problem ;)
Let us know, it's late and I'm going to bed.
later
mgiroir
06-19-2005, 01:56 PM
The htaccess file has not been changed, it is the same as the file that came with the scripts. To my knowledge, you cannot view hidden files in a browser.
I just edited the htaccess file to read this:
RewriteRule .* /index.php [QSA,L]
instead of this:
RewriteRule .* index.php [QSA,L]
This has stopped the adding of the cats to the end of the url, however, the index page is still reloaded after each click.
Ap0s7le
06-19-2005, 09:21 PM
I noticed when I'm at my home url
And I click on for example "Catering"
It not only doesn't add to the end of the URL now, but it actually refreshes and puts this url in the address.
index.php
Have you tried a new install?
I would redo the .htaccess the way it was. The actual location of the files aren't in the subdomain, but in the home url folder
Try a fresh install with the current download. If you want it in a subdomain make sure you specifiy that in the configs.
See if this helps, if not I'm going to destroy your server. Just kidding.
Let us know, I'm sure someone around here knows the answer, they just want to see if I can solve it on my own. Haha
later
mgiroir
06-19-2005, 09:31 PM
I had already tried changing that in the config and nothing changed.
It does change the url to /index.php, but when you then click on any of the cats or subcats it only refreshes the page. I am currently removing all files to begin a fresh install.
David
06-19-2005, 11:32 PM
If you would be able to pm me with ftp access, I can see to it that your issues are solved, but I think we need to do some looking around. Would that be possible?
mgiroir
06-20-2005, 04:14 AM
Unfortunately, due to security reasons, this is not possible. I have done another fresh install and still the same.
I am currently looking through all the scripts to figure out where the url is written.
Ap0s7le
06-20-2005, 04:25 AM
I would say the it's not a problem with the scripts but more of an issue with server configs.
Check into it :)
mgiroir
06-20-2005, 04:34 AM
A run of phpinfo gives me this about gd:
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
This is the only server config that I think would have a chance to pose any probems. This is why I am confused about this.
David
06-20-2005, 04:45 AM
Maybe you can tell us a little about the configuration?
Operating system, php version, mysql version
This would help us isolate the issue a little better...sorry that you are having problems:(
We definitely are happy to help until we reach the solution...
mgiroir
06-20-2005, 05:16 AM
Operating System is RedHat 9
php Version is 4.3.10
mysql version is 4.0.22
Sorry about the ftp access.
David
06-20-2005, 05:22 AM
Hmmmmm....
It seems that everything is up to date.
We really need dcb to take a look at this thread.
If you don't hear from him by tomorrow, please PM him. I'm sure he can get us moving faster toward the solution.
mgiroir
06-20-2005, 05:32 AM
Thank you David. Much appreciated.
seovault
08-23-2006, 02:00 AM
Sorry that I put up such an old thread, but it looks like this problem hasn't been solved yet... though many people wrote about it.
I got the same issue at directory.singerselect.com and would appreciate any help in here.
My .htaccess is default:
Content visible to registered users only.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.