Hi there,

I would like to add rebots.txt in the main domain without application name path.

Anyone know how to set up?

I am using Reactive app and know only import resource inside app. 

The Path will be www.xxx.com/AppName/robots.txt which is not applicable on GoogleBot to find my robots file.

Thanks,

Hi Chaiwat,

You can use -

SyntaxEditor Code Snippet

"/" + GetEntryEspaceName() + "/rebots.txt"


GetEnteryEspaceName() is return application domain with modulename.

And also you have option you can add .txt file in resource folder in DataTab and use this url in application like below image-

There is no need to extra effort to add domain and filename in logic.

Regards

Rahul Sahu

Rahul Sahu wrote:

Hi Chaiwat,

You can use -

SyntaxEditor Code Snippet

"/" + GetEntryEspaceName() + "/rebots.txt"


GetEnteryEspaceName() is return application domain with modulename.


Regards

Rahul Sahu

Hi Rahul Sahu,

Thank you for your reply.

Actually, I want to add resource without application name path

For example: www.google.com/robots.txt

What I know now is we can add resource inside module.

For example: www.google.com/abc/robots.txt

In this example, abc is a module(eSpace) name.

I want to cut or convert url to www.google.com/robots.txt 

Or do you have any other way to place a resource and create url manually?


Thanks,

Chaiwat


Hi Chaiwat,

It is not possible to have that link since www.google.com (or www.xxx.com) will point to the root of the "folder" which is your personal cloud for example. This means that you would have to get this resource on the application level which is not possible. You can add resources to the module but that means you will always have the extra /MODULE_NAME/robots.txt on your link.

For example, Service Center is also on this Module placeholder on the link
        http://<your_server>/ServiceCenter

This is the default link structure:

http://<your_server>/<your_module>/<your_page_name>.aspx?<first_input>&<second_input>

Cheers,

Francisco

Hi Chaiwat,

I agree with @Francisco, 

Because all content inside your application so you need to add this structure. http://<your_server>/<your_module>/<your_page_name> 

This is other thing if you can link other application to OS .


Regards

Rahul Sahu

Hi Chaiwat,

 

Francisco’s comment is correct if you're using a personal environmentbut if you have an enterprise licence it's possible to access a link in Outsystemswithout referring the module or even the screen, for that you need to use theSEO URLs option in the tab Administration in Service Center.

 

Below is a link with the explanation how to use the functionality:

https://success.outsystems.com/Support/Enterprise_Customers/Maintenance_and_Operations/OutSystems_Platform_SEO_Friendly_URLs

 

Best regards,

Ricardo Pisco.