Link Extentions

Issues related to hyperlinks and web site navigation.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/links.html
Post Reply
johnsmith0251
 
 
Posts: 269
Joined: Mon Aug 20, 2018 6:47 pm

Link Extentions

Post by johnsmith0251 »

When it comes to extentions, I noticed that some websites don't have .php, .html, etc ...

It's just www.domain.com/link

I feel this is a bit more clean and if I ever change a page from html to php because of a form, i don't have to worry about 301 redirects.

I know two ways of doing this ...

htcaccess code on the server and creating a folder named "link", with index in it.

Are these the only two ways?

Thanks in advance!
wwonderfull
 
 
Posts: 1439
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Link Extentions

Post by wwonderfull »

You can also do it in wwb by using canonical link. There is advanced option for this too. But be aware I one day took the stand to test it in every way and according to pablo himself there are few cases where it may have problems as I had. It can cause problem with some extensions or custom coded php pages although most of the php page should work fine. And there was a time some of the extension of wwb did not work. So be cautious on that too. You would need both htaccess and wwb settings to adjust it.

According to @pablo
The actual file still will have the php extension otherwise the server will not know what type of file it is dealing with
For me my success and even the error page did not show as I removed the extension.

Can read about it more Here
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Link Extentions

Post by Pablo »

Normally, you would use .htaccess to hide the extensions.
In WWB, you can hide extensions via Tools -> Options -> Publish -> Hide file extensions for internal links.

Please read the help before enabling this option, otherwise links may stop working,
johnsmith0251
 
 
Posts: 269
Joined: Mon Aug 20, 2018 6:47 pm

Re: Link Extentions

Post by johnsmith0251 »

Thank You!
wwonderfull wrote: Wed Feb 14, 2024 2:46 am You can also do it in wwb by using canonical link. There is advanced option for this too. But be aware I one day took the stand to test it in every way and according to pablo himself there are few cases where it may have problems as I had. It can cause problem with some extensions or custom coded php pages although most of the php page should work fine. And there was a time some of the extension of wwb did not work. So be cautious on that too. You would need both htaccess and wwb settings to adjust it.

According to @pablo
The actual file still will have the php extension otherwise the server will not know what type of file it is dealing with
For me my success and even the error page did not show as I removed the extension.

Can read about it more Here
johnsmith0251
 
 
Posts: 269
Joined: Mon Aug 20, 2018 6:47 pm

Re: Link Extentions

Post by johnsmith0251 »

Thank You for the info!
Pablo wrote: Wed Feb 14, 2024 6:53 am Normally, you would use .htaccess to hide the extensions.
In WWB, you can hide extensions via Tools -> Options -> Publish -> Hide file extensions for internal links.

Please read the help before enabling this option, otherwise links may stop working,
Post Reply