Change page htm number to a name

S

Stuart

I am presently trying to produce a members (access by password) only section
on my website - I have downloaded a javascript instruction to do this - all
going well until it asks for the page name I'm allowing my member's access to
- is there anyway in Publisher 2003 where the page number ie: page1234.htm
can be changed to say passpage.htm?
 
D

Don Schmidt

The way I accomplish a password protected page on my site is;

Rather than use a java script I use a .htaccess and .passwd file. The
..passwd file goes into the cgi-bin folder and the .htaccess file goes into
the folder containing the protected site page.

Specifics:

On the website is my index and page html files plus the image files plus a
folder called secret which contains the .htacess file. Also there is the
html file page.html. It is the protected page.

The root of the website on the server has the cgi-bin, html_public and
miscellaneous folders. The html_public folder holds all of your website
folders.

There is some good information on how to protect a folder or the entire
website at:

http://www.iinet.com/support/faqlist.php?cat=web hosting

Items 20 & 21
 
D

DavidF

Yes. Click Help, search on "page name", click on "Specify the title and the
file name of a web page." and follow the instructions.

DavidF
 
S

Stuart

Thanks Don - noted - its possible I may have to resort to your suggestion if
I can't make my secret page secret - if you know what I mean...
 
S

Stuart

Thanks David - I thought I new publisher but missed that one - pleased to say
it works and members (with correct password) goto secret page however when
displayed the secert page shows its full title in the toolbar (not very
secret!) - any ideas how I can conceal or disguise the toolbar content when
the secret page is displayed?
 
D

DavidF

I don't really have an answer for you, but I have a suggestion.

I think you should consider a password protected subfolder on your host.
Then it does not matter if they know the address or name of the page or
files on your site, they will still need a password to access them. A server
side solution is a better long term solution than javascript in my opinion.

Don outlined one server side approach (.htaccess) earlier in this thread.
You won't have this option with a Windows server, but there will be other
alternatives offered by different web hosts. Almost all offer a method to
create a password protected subfolder. You will usually find the
instructions in the FAQ section under support. It usually is not that hard
to do, and you can always ask your host support for additional help in
installing the subfolder. You will usually be able to create a password
protected subfolder from your web host control panel. You might call the
folder "members".

Now you are going to break up your website by using multiple Publisher
files. Create a new Publisher file and build your "passpage" or a "members"
publication. You can copy and paste the whole page at one time from your
main web publication, which you can open in a second instance of Publisher.
Once you get the page copied, then delete it from the main web publication.
Write a link to the subfolder from your main site and upload the changes.
Publish your new page, just do the same thing that you do with the main
site, and when you do the Publish to the Web direct the html output to the
new subfolder you created "members". You can use the default index.htm file
name.

Then your link to the new sub site you just created would be:
http://yourwebsite.com/members/index.htm
But to access the page you would need the password.

You also now have a folder where you can upload additional content, such as
PDF files for downloading. You could also add additional webs that you
create with more Publisher files...and perhaps create subfolders within the
members folder, or when you name the html output, instead of the default,
name the file much as you suggested: passpage.htm. Here is some more
information about building websites with multiple Publisher files: Building
a web site with multiple Publisher web publication files:
http://msmvps.com/blogs/dbartosik/archive/2006/01/16/81264.aspx

Anyway, that's the way I would approach it. More and more people are
deactivating javascript as a safety concern. I wouldn't want to be
dependent upon javascript. Besides having a password protected folder and
building your site with multiple Publisher files is far more versatile.

DavidF
 
S

Stuart

Thanks David - I thought it was going a bit too well - I also had a feeling
in the back of my mind that eventually I would have to follow this course - I
will let you know how I get on - thanks again...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top