[Pro] How to eliminate .html suffix on page URLs

Surely there must be a way.

For instance, currently a link to our ‘about me’ page goes to:

http://sallyroth.com/aboutme.html

I would like it simply show in the nav bar as:

http://sallyroth.com/aboutme

I can change the file names with FTP, but can’t seem to get freeway to lose that tag. Deleting it on the internal name seems to work, but then going back, it gets re-added.

Is there a way? Granted, not a big deal. Just feel it would have a cleaner look.

Appreciate any insights!
Matt


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You could make a folder called “aboutme” or “about-me” then put and index.html file inside that. You would have to reference the link to that page as an external link aboutme/ so that freeway does not show the index.html file.

Alternatively you could do this with a .htaccess file

David

http://www.ineedwebhosting.co.uk

On 11 Mar 2012, at 15:52, “Sally&Matt” email@hidden wrote:

Surely there must be a way.

For instance, currently a link to our ‘about me’ page goes to:

http://sallyroth.com/aboutme.html

I would like it simply show in the nav bar as:

http://sallyroth.com/aboutme

I can change the file names with FTP, but can’t seem to get freeway to lose that tag. Deleting it on the internal name seems to work, but then going back, it gets re-added.

Is there a way? Granted, not a big deal. Just feel it would have a cleaner look.

Appreciate any insights!
Matt


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Matt, in order to use links like http://sallyroth.com/aboutme, ‘aboutme’ needs to be a folder/directory with an index-file in it (index.html/htm/php). So first of all you need to create folders in stead of pages with those names like ‘aboutme’ and in those folders create pages index.html

Freeway automatically creates links to the complete url’s, including the page+suffix (http://sallyroth.com/aboutme/index.html). So to strip that to ‘http://sallyroth.com/aboutme/’ you’ll need the Default file URLs action by Tim Plumb. You’ll find it here: FreewayActions.com | Beta Box

Remember it’s a folder-action, and you’ll need to apply it to the root folder of the site.

Good luck, Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

How do you apply the folder-action to the root folder? There were no instructions with the action file.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

  1. Select the root folder (site folder) in the site panel on the left of the Freeway document
  2. Select Page > Folder Actions and then the Action you want to apply

Alternatively you can do this;

  1. Select the root folder (site folder) in the site panel on the left of the Freeway document
  2. Open the Actions palette (Window > Actions)
  3. Click on the plus icon in the foot of the palette
  4. Select the Action you want to apply to the folder

Either way will apply the Action to the folder for you.
Regards,
Tim.

On 9 Dec 2014, at 18:43, Eric wrote:

How do you apply the folder-action to the root folder? There were no instructions with the action file.


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Another method to achieve clean page URL’s (without the .html extension) is by placing this snippet in the .htaccess file:

# Hide .html extension
<ifmodule mod_rewrite.c>
Options +FollowSymLinks -MultiViews
DirectorySlash Off
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME}/ -d
RewriteCond %{SCRIPT_FILENAME}.html !-f
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.+).html$ /$1 [R=301,L]
RewriteCond %{SCRIPT_FILENAME}.html -f
RewriteRule [^/]$ %{REQUEST_URI}.html [QSA,L]
</IfModule>

The benefit of this method is that you don’t have to worry about placing files in subfolders, or using actions. Simply create your website as you always do.

There’s more detailed directions here: http://calebgrove.com/articles/understanding-htaccess-for-humans


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thank you! That worked!

I added it to the end of the file, first, and that didn’t work, so I put it at the beginning, and that worked.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

… and what’s the general purpose of doing so - I mean hiding suffixes?

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It makes it so you don’t have to type them in. For instance, if I want to go to wordpress.com/plugins.html, it makes it so you don’t have to type in the “.html” part.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

if I want to go to wordpress.com/plugins.html, it makes it so you don’t have to type in the “.html” part.f I want to go to wordpress.com/plugins.html, it makes it so you don’t have to type in the “.html” part.

Sure -we understand that but how many people actually type URLs

These days we mostly follow links and with a decent navigation system as long as the visitor knows the domain name…

Is it a vanity thing?

The fact of the matter is that Joe Average types a web address into his search bar and gets Google to do the work.

My 2c.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

A lot! I’m starting a nonprofit organization and we tell a lot of people what our website is either verbally or with literature. They have to then type it in.

The website has a directory of medical negligence victims and each victim has their own page. Their families often like to tell people about their pages and it’s easier to give out the link without the .html.

There are still a lot of people who don’t know the ins and outs of the internet, and/or don’t use it enough to do it really well, especially senior citizens, which we deal with a lot.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

From Walter (2011) http://www.freewaytalk.net/thread/view/85665#m_85699:

“Seriously, in the final estimate, you’re being asked to nearly double your effort for limited or no return. If your client is paying you double for this “tweak” (which is not a tweak, not by any stretch) then fine. Take the money and grumble. But if they expect this to be thrown in, push back. Argue that this is not how the Web works. Point out that extensions in filenames are a good thing: they reduce the amount of work that the server is expected to do on every request and therefore speed up the site. (This is actually true, if such a small amount that it would be difficult to measure on all but the largest and highest-traffic sites.)
Any sites your customer may be comparing his site to which feature these types of URLs are actually content-managed sites based on a CMS, or Web applications built in Ruby on Rails or the like. Those aren’t actually URLs at all, but rather a set of instructions to the application server, passing a set of variables into a computer program which locates and composites and serves the resulting dynamic content to the browser as if it was a normal “real” HTML page.”

Todd


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options