Closed Thread Icon

Topic awaiting preservation: front page != index.html (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12005" title="Pages that link to Topic awaiting preservation: front page != index.html (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: front page != index.html <span class="small">(Page 1 of 1)</span>\

 
Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 01-18-2002 22:42

Is there a way to use .htaccess or something to specify the page to return in the case of someone just going to the top level? Right now, since index.html is automatically sent, but I want the first viewed page to be /cyanslime/index.html, I'm using a javascript redirect. However, I've found that that replaces the URL in the address bar, and as a result, I'm getting lots of links that aren't to the top-level - which will be a problem when I next change my front page.

So, is there a way to make the server return a specified page when none is specifically requested?

Piper
Paranoid (IV) Inmate

From: California
Insane since: Jun 2000

posted posted 01-19-2002 07:30

Hi Slime,

If your Apache server has mod_rewrite support, you can try a rewrite rule and see if that works. Take a look at http://httpd.apache.org/docs/misc/rewriteguide.html and http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html

If I understand correctly, something like this should work:

code:
RewriteEngine On
RewriteRule ^/$ /cyanslime/



I didn't test it but that will get you going in the right direction if it doesn't work.

Regards,
Charlie



[This message has been edited by Piper (edited 01-19-2002).]

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 01-20-2002 18:37

Not my forte but would a symlink work in this situation as long as long as the ability to follow symlinks is enabled?



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 01-22-2002 07:22

This might help: http://wsabstract.com/howto/htaccess6.shtml

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 01-22-2002 20:41

Thanks everyone =)

« BackwardsOnwards »

Show Forum Drop Down Menu