Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: .htaccess - batch rewrite/ redirect?

Reply
Thread Tools

Re: .htaccess - batch rewrite/ redirect?

 
 
Craig Bennett
Guest
Posts: n/a
 
      06-29-2003
On 29 Jun 2003 02:29:58 GMT, Sam Hughes <> wrote:

>"EightNineThree" <> wrote in
>news:bdk6tl$5cd$:
>
>> I've just taken over a nightmare of a site for an animal rescue
>> organization that has *over* 1500 pages, many of them in a static
>> "yellow pages" directory.
>>
>> I'm really new to manipulating .htaccess files, and I was wondering if
>> there's a way to redirect every file from what was a .html file to
>> what will become a .php version
>>
>> I hope to convert everything to use includes and also convert things
>> like that yellowpages to db-driven content, but I really want to avoid
>> what is sure to become a major search engine nightmare if I rename
>> these files.

>
>Why don't you instead have the HTML files processed as if they were PHP
>files? I'm sure that could be done and would be a better solution.



To have .html files parsed the same as .php
In your .htaccess
AddType application/x-httpd-php .html


 
Reply With Quote
 
 
 
 
McWebber
Guest
Posts: n/a
 
      06-29-2003
"Craig Bennett" <> wrote in message
news:...
> >
> >Why don't you instead have the HTML files processed as if they were PHP
> >files? I'm sure that could be done and would be a better solution.

>
>
> To have .html files parsed the same as .php
> In your .htaccess
> AddType application/x-httpd-php .html


Or, as I think someone suggested previously, just add .html to the list in
httpd.conf for PHP.

--
McWebber
No email replies read
If someone tells you to forward an email to all your friends
please forget that I'm your friend.


 
Reply With Quote
 
 
 
 
Craig Bennett
Guest
Posts: n/a
 
      06-29-2003
>> To have .html files parsed the same as .php
>> In your .htaccess
>> AddType application/x-httpd-php .html

>
>Or, as I think someone suggested previously, just add .html to the list in
>httpd.conf for PHP.


If you have access to that file
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Stop Modelsim from echoing tcl commands in batch mode? Dave VHDL 0 09-08-2005 08:47 AM
Re: Ability to send an email message from within a batch file Gerard Bok Microsoft Certification 0 09-08-2004 11:15 AM
batch downloads with firefox? Dennis J. Tuchler Firefox 4 07-15-2004 06:42 PM
checking return values of a perl program in a batch file brad Perl 2 01-19-2004 01:41 PM
batch file Tam ASP .Net 4 12-25-2003 05:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57