Re: [users@httpd] Keywords and apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It appears to be serving up the correct page, but the full URL isn't
showing.  I tried adding the "UseCanonicalName off" and it didn't appear to
affect anything.

So when I type in www.mydomain.com/keyword   the browser delivers
www.mydomain.com/keyword/index.htm, however, the address bar in the browser
only shows www.mydomain.com/keyword

When I type in www.mydomain.com the browser delivers
www.mydomain.com/index.htm and the address bar in the browser shows
www.mydomain.com/index.htm (this is what I'm trying to accomplish with the
keywords).

I made sure the dir module is loaded as well.

Here's what the access log shows when I try to pull up
www.mydomain.com/keyword

XXX.XXX.XXX.XXX - - [19/Sep/2006:16:43:20 -0700] "GET /keyword HTTP/1.1"
200 6942 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4)
Gecko/20060508 Firefox/1.5.0.4"

Based on your comment about the trailing slash.  I found documentation
pointing to the need to have the following directive:

DirectorySlash On

I added this and it didn't appear to fix this issue either, although it
sounded like it was supposed to address it.

My DirectoryIndex is set as follows:

<IfModule dir_module>
    DirectoryIndex index.html index.htm default.htm default.html
</IfModule>


____________________________
Steven Niedermeyer
Bellingham, WA





                                                                           
             "Joshua Slive"                                                
             <joshua@xxxxxxxx>                                             
             Sent by:                                                   To 
             jslive@xxxxxxxxx          users@xxxxxxxxxxxxxxxx              
                                                                        cc 
                                                                           
             09/19/2006 04:19                                      Subject 
             PM                        Re: [users@httpd] Keywords and      
                                       apache                              
                                                                           
             Please respond to                                             
             users@xxxxxxxxxxx                                             
                   e.org                                                   
                                                                           
                                                                           




On 9/19/06, sniedermeyer@xxxxxxx <sniedermeyer@xxxxxxx> wrote:
> Can anyone point me to the best directive to use for keyword redirection.
> What we're looking to do is allow visitors to our site to type in say
> http://www.mydomain.com/keyword and have them be redirected to
> http://www.mydomain.com/keyword/ and then let Apache pick up the default
> file index.htm so that it results in the visitor be sent to
> http://www.mydomain.com/keyword/index.htm.  Another example would be
> redirecting http://www.mdomain.com/keyword to
> http://www.mydomain.com/department/services/keyword/index.htm
>
> I tried the redirect directive but can't seem to get it to work.  Here's
> what I tried:
>
> Redirect permanent /pw http://www.cob.org/pw/

This is called a trailing-slash redirect, and should happen
automatically if you have "UseCanonicalName off".  Then the index.html
should be delivered automatically if DirectoryIndex is set correctly.
If that isn't working, tell us exactly what is happening including the
contents of the error and access logs for the request.

For the second example, you need something like
Redirect permanent /keyword
http://www.mydomain.com/department/services/keyword/

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux