![]() |
|
#1
|
|||
|
|||
mod_rewriteOn my website, there are folders for each of MLB, NFL, NBA, and NHL at, respectively, /sports/mlb/, /sports/nfl/, etc. I want those to be available even if you type in by mistake just /mlb/ or /nfl/ etc. So I tried the following in .htaccess:
Code:
|
|||
|
#2
|
||||
|
||||
Re: mod_rewriteIs /sports/ an actual directory/folder or is it fake?
My mod-rewrite knowledge is now rusty, haven't used it in a while but try this: Code:
I will appreciate your feedback. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
Re: mod_rewritethe /sports/ directory is, indeed, real. it's the /mlb/, /nfl/, etc directories i'm trying to fake
The code you gave does not, unfortunately, work. Including the RewriteBase directive in .htaccess makes nothing load at all except the site's background, which is very odd indeed. But even taking that out, when I try /mlb the browser tries to connect to in-diffusion.agava.com (?). This server never replies (firefox always times out), even though it has an entry in whois.net. I do not own the server for my site, nor do I pay for it; I use Siteburg.com's free web hosting. I suppose I'm getting what I pay for, but this is mystifying. I have other, simple, redirects in .htaccess to preserve old links to moved files, that work fine. |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The