PC Review


Reply
Thread Tools Rate Thread

How create .htaccess file for 301 redirects

 
 
Barry
Guest
Posts: n/a
 
      16th Feb 2008
Hi All,
I have just re-designed a site to use .php pages (rather than the previous
..htm).
So I want to re-direct any calls for page_name.htm to its successor
page_name.php.

Best way seems to use a .htaccess file (the site is hosted on Apache)...
when I ran into FP problems below!

FP wont let me create a ".htaccess" file, so I searched this forum for a
solution.
I read that I should copy the remote file to local, put my 301 re-directs IN
FRONT of any FP code, copy it back to the remote .... oh! and then hope it
works ;-),

But using FP I can't see the .htaccess file listed (but I can see it exists
if I use an FTP client)
PS - I DO have "show fidden files selected" already.

Can someone help me with how to create the ".htaccess" file please.
Will it work?
Is there a better alternative?
--
Thanks ... Barry
 
Reply With Quote
 
 
 
 
Ronx
Guest
Posts: n/a
 
      17th Feb 2008
NO.

Put your redirect codes AFTER any FrontPage codes. FrontPage is very
particular about this (at least in my experience).

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"Barry" <(E-Mail Removed)> wrote in message
news:046BD90C-2560-4E5F-8810-(E-Mail Removed):

> Hi All,
> I have just re-designed a site to use .php pages (rather than the previous
> .htm).
> So I want to re-direct any calls for page_name.htm to its successor
> page_name.php.
>
> Best way seems to use a .htaccess file (the site is hosted on Apache)...
> when I ran into FP problems below!
>
> FP wont let me create a ".htaccess" file, so I searched this forum for a
> solution.
> I read that I should copy the remote file to local, put my 301 re-directs IN
> FRONT of any FP code, copy it back to the remote .... oh! and then hope it
> works ;-),
>
> But using FP I can't see the .htaccess file listed (but I can see it exists
> if I use an FTP client)
> PS - I DO have "show fidden files selected" already.
>
> Can someone help me with how to create the ".htaccess" file please.
> Will it work?
> Is there a better alternative?
> --
> Thanks ... Barry


 
Reply With Quote
Reply

Thread Tools
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

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 create/upload .htaccess file? =?Utf-8?B?T2xnYQ==?= Microsoft Frontpage 6 1st Jun 2007 02:47 AM
How to create/upload htaccess file? =?Utf-8?B?T2xnYQ==?= Microsoft Frontpage 2 31st May 2007 01:35 PM
htaccess conflict with fp extensions and joomla htaccess file John Jay Smith Microsoft Frontpage 2 24th May 2006 10:21 AM
.htaccess file ?? Mike Microsoft Frontpage 7 5th May 2005 02:57 PM
Frontpage 2003, htaccess, and redirects Joe Siegler Microsoft Frontpage 1 24th Feb 2004 10:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:23 PM.