neicedover1982
Jul 2nd, 2009, 08:54 PM
I am working on a site and I was hoping to use the htaccess modrewrite to make the site work better.
I want to be able to have a url as "url.com/12345/" where 12345 can be anything. I would like it directed to "account.php?id=12345"
also other urls like "url.com/12345/photos/" to go to "photos.php?id=12345"
there will be many other folders/sub directories.
The biggest problem is that my public server is www.url.com/htaccess but my testing server is www.url.com/test1/htaccess. I cant get the htaccess to work regardless of where the file is.
I hope you understand. I could really use the help.
I want to be able to have a url as "url.com/12345/" where 12345 can be anything. I would like it directed to "account.php?id=12345"
also other urls like "url.com/12345/photos/" to go to "photos.php?id=12345"
there will be many other folders/sub directories.
The biggest problem is that my public server is www.url.com/htaccess but my testing server is www.url.com/test1/htaccess. I cant get the htaccess to work regardless of where the file is.
I hope you understand. I could really use the help.