Closed Thread Icon

Topic awaiting preservation: redirect *.html -> *.shtml Pages that link to <a href="https://ozoneasylum.com/backlink?for=12583" title="Pages that link to Topic awaiting preservation: redirect *.html -&amp;gt; *.shtml" rel="nofollow" >Topic awaiting preservation: redirect *.html -&gt; *.shtml\

 
Author Thread
u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 01-19-2003 23:45

How can i redirect every request in a directory from filename.html to filename.shtml?

Example:
Some users came to my page via google searching "brandenburger tor nacht". But google links to http://thinkdrastic.de/photos/archives/000303.html
(that site doesn't exist anymore)
but http://thinkdrastic.de/photos/archives/000303.shtml exist.

Thanks.



[This message has been edited by u-neek (edited 01-19-2003).]

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 01-20-2003 02:03

Me thinks .htaccess in the desired folder with the following should work:

RewriteEngine on
RewriteRule ^([a-zA-Z0-9_]+).html $1.shtml [L]

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 01-20-2003 14:21

How can i use this syntax for one specific directory?

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 01-20-2003 14:36

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 01-20-2003 14:59

u-neek for a specific directory try:

RewriteEngine on
RewriteRule ^/mydirectory/([a-zA-Z0-9_]+).html /mydirectory/$1.shtml [L]

___________________
Emps

FAQs: Emperor

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 01-20-2003 16:47

Thanks.

« BackwardsOnwards »

Show Forum Drop Down Menu