Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 17th, 2000, 02:48 PM
lair lair is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 3 lair User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've just started working with Apache, and have had good luck getting up and running, but find that if the typed in URL does not have a "/" typed in the end, it can't find my page.

ie: http://www.landtrustgroup.com/intermoc/ will work, but http://www.landtrustgroup.com/intermoc gets an error

There must be a simple solution to this, but I can't find it. Please...any help?

Reply With Quote
  #2  
Old October 17th, 2000, 03:01 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Start here -> http://www.apache.org/docs/misc/rewriteguide.html and look under "Trailing Slash Problem".

Reply With Quote
  #3  
Old October 17th, 2000, 06:53 PM
lair lair is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 3 lair User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've been there and tried a bunch of code, but don't seem to have it right or have it in the right place. Can you tell me the specific script and exeactly where is goes in my .conf file? Many thanks.

Reply With Quote
  #4  
Old October 17th, 2000, 11:58 PM
RyanP
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
don't you just need to set your 'ServerName' to www.landtrustgroup.com in httpd.conf?

Reply With Quote
  #5  
Old October 18th, 2000, 12:51 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
#httpd.conf
<Directory "/home/httpd/webroot">
Options blah blah
AllowOverride blah blah
RewriteEngine on
RewriteRule ^intermoc$ intermoc/ [R]
</Directory>

OR

#http://www.landtrustgroup.com/.htaccess
RewriteEngine on
RewriteRule ^intermoc$ intermoc/ [R]

The link I gave you mentions exactly:

>>So, to do this trick we write:
>>RewriteEngine on
>>RewriteBase /~quux/
>>RewriteRule ^foo$ foo/ [R]

The only difference is the RewriteBase which you don't need one in your case.
If you choose to put that in httpd.conf, be sure to "apachectl graceful". If you see error about the "RewriteEngine on" line, then too bad, your Apache doesn't have mod_rewrite support and you need to recompile your Apache preferably enable mod_so so you can compile additional modules using DSO method.

[This message has been edited by freebsd (edited October 17, 2000).]

Reply With Quote
  #6  
Old October 18th, 2000, 12:05 PM
lair lair is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 3 lair User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I still don't have it?!?!?!?!

in my httpd.conf I have the following included:
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>

<Directory "c:/apache server files/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>


#LMB allowed this module 10 17 00
LoadModule rewrite_module modules/ApacheModuleRewrite.dll

..and later I have:

#LMB added 10 17 00 to try to solve "/" problem
<Directory "c:/apache server files/htdocs">
RewriteEngine on
RewriteRule ^intermoc$ intermoc/ [R]
</Directory>


I have tried various combinations of all the language suggested, but still cant' get where I want. I have the latests Apache for Win2k running which was just downloaded from the web.

lair

Reply With Quote
  #7  
Old October 18th, 2000, 04:50 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
What? Running win2k????? You should have mentioned about that in the first place. Or else, one would assume you are running some kind of UNIX or Linux.

BTW, I dunno anything about Apache running on win32, so I can only give you some ideas how it should work on UNIX, you are on your own to apply that to your win2k environment. Why you have the following?

<Directory "c:/apache server files/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

AND

<Directory "c:/apache server files/htdocs">
RewriteEngine on
RewriteRule ^intermoc$ intermoc/ [R]
</Directory>

Both of this are incorrect. You need to merge the two together as:

<Directory "c:/apache server files/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
RewriteEngine on
RewriteRule ^intermoc$ intermoc/ [R]
</Directory>

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Newbie...how to avoid needing "/" at end. HELP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT