Page 1 of 1

Link Extentions

Posted: Tue Feb 13, 2024 11:47 pm
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!

Re: Link Extentions

Posted: Wed Feb 14, 2024 2:46 am
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

Re: Link Extentions

Posted: Wed Feb 14, 2024 6:53 am
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,

Re: Link Extentions

Posted: Thu Feb 15, 2024 5:35 pm
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

Re: Link Extentions

Posted: Thu Feb 15, 2024 5:35 pm
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,