PDA

View Full Version : running normal view from link directory root


era
04-16-2006, 06:31 PM
Hi Folks,

I really dig phpLD Regional Directory, but I have one mod I need to do to make it the way I want it. I want to remove "normal" from the URL so the category version of phpLD Regional Directory runs off of / and region runs off of /region.

So the category version runs off of mydomain.com/directory, and the regional version runs off of my domain.com/directory/region.

Has anyone had success with this? If I define define("NOR", ""); in all.php, it makes the app work goofy(doesn't show breadcrumb nav, links, etc).

Anyway around this? I can't believe that I'm the first one to bring this up. having normal in an SEO'd URL doesn't seem intuitive.

Thanks,

Eric

anon
04-16-2006, 08:20 PM
try mod rewriting rules to eliminate the /normal/ in your uri

era
04-16-2006, 08:27 PM
Hi Anon,

How/where do I do that? That is the missing link.

Thanks,

Eric

anon
04-16-2006, 08:31 PM
oh god... mod rewrite is like another world of it's own.

that's something I do *not* play around with for 'funs' sake, because it can cause lots of problems or be a godsend.

i'd suggest a search on an engine for 'mod rewrite' and reading up on it.

Rob

era
04-16-2006, 08:39 PM
Thanks again. I can't believe I'm the first one to loath the "normal" word in the URL. And that I have to hack something so cool to get it to work.

I'm going to see if I can simply hack the PHPLD script first. Like " if NOR write this URL, else..." - if this fails, I'll play with mod_rewrite.

Would you happen to know where in PHPLD the rewrite takes place so I'm not hunting and pecking?

Eric

David
04-17-2006, 04:52 AM
Thanks for trying your best to figure it out. I try to help as many people as possible, but sometimes I can't keep up!

Let me know if you aren't getting it.
I'm pretty sure getting rid of normal is not ultra simple. Sorry. :oops:

era
04-17-2006, 06:03 AM
np. I'd dig figuring this out, so others can benefit. Perhaps I am the only one who loathes and extra word in a URL. ;]

If I could find the function that writes out the URI, I could try and hack it. Or if I could figure out in .htaccess how to write RewriteCond or RewriteRule to remove "normal/" from the URL. That would dial it as well. Thanks. Eric

anon
04-17-2006, 06:17 AM
era, I've never worked in the regional script, but like i said, it's on the same engine, so it's basically the same thing as phpld, so if you want, you can give me your ftp info: host/user/pswd and I can grab one of the tpl's and do some testing. (it won't be mod rewrite, but something else i have in mind)

Rob

w529
11-20-2006, 04:05 AM
Any solution for this?