As far as I know gitlab does not support customer server configuration files such as .htaccess or .conf.

You can add your website to the google search engine here: https://www.google.com/webmasters/tools/submit-url?continue=/addurl&pli=1

Answer from user8106534 on Stack Overflow
🌐
GitLab
forum.gitlab.com › how to use gitlab
How to allow directory listing on gitlab.com pages? - How to Use GitLab - GitLab Forum
November 6, 2018 - I’d like to allow listing of directory/files structure for my static content at gitlab.com pages. I have commited file .htaccess with Options +Indexes content, but it doesn’t help. For all subdirectories gitlab.io returns 404 status page instead of nice listing.
🌐
GitLab
git.coop › cotech › website › #52
Add .htaccess files to git (#52) · Issues · cotech / website · GitLab
December 1, 2018 - In order that URLs work without .html extensions a .htaccess file containing the following is needed in the DocumentRoot as will as in sub-directories that...
🌐
Jozef
jozef.io › r915-gitlab-pages-own-domain
Porting and redirecting a Hugo-based blogdown website to an HTTPS-enabled custom domain and how to do it the easy way - Jozef's Rblog
May 11, 2019 - One solution would be to tell GitLab to serve the content to both and use the canonical link or use the JavaScript redirect again. However, there is a much nicer solution on offer here since for our own domain we can use server-side redirects. If your provider of choice is CloudFlare, it seems that this redirect can be done in a few clicks via the web UI · One way to create this redirect is by using a .htaccess file.
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › deploy and release your application › gitlab pages › redirects
GitLab Pages redirects | GitLab Docs
To create redirects, create a configuration file named _redirects in the public/ directory of your GitLab Pages site.
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › deploy and release your application › gitlab pages › settings
GitLab Pages settings | GitLab Docs
April 25, 2022 - This limitation is because of the HTTP Over TLS protocol. HTTP pages work as long as you don’t redirect HTTP to HTTPS. You must host your GitLab Pages website in a project.
🌐
GitLab
gitlab.com › gitlab.org › gitlab-pages › #24
Add simple redirect configuration (#24) · Issues · GitLab.org / gitlab-pages · GitLab
September 18, 2020 - Problem to solve The current advice for redirects in GitLab pages is to use meta...
Find elsewhere
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › deploy and release your application › gitlab pages › access control
GitLab Pages access control | GitLab Docs
Generally available in GitLab 18.5. Feature flag ff_oauth_redirect_to_sso_login removed. You can enable Pages access control on your project if your administrator has enabled the access control feature on your GitLab instance.
🌐
GitLab
gitlab.com › gitlab.org › gitlab-pages › #72
Trying to use H5AI webserver indexer on my gitlab pages but requires an edit to my pages .htaccess or Apache's httpd.conf (#72) · Issues · GitLab.org / gitlab-pages · GitLab
July 13, 2017 - Hello, I am trying to use H5AI webserver indexer to make my gitlab pages maven look nicer so I can make it public but I know that GitLab...
🌐
GitLab
gitlab.lcqb.upmc.fr › help › user › project › pages › introduction.md
Introduction · Pages · Project · User · Help · GitLab
Since you cannot use any custom server configuration files, like .htaccess or any .conf file, if you want to redirect a page to another location, you can use the HTTP meta refresh tag.
🌐
GitLab
forum.gitlab.com › how to use gitlab
Need help in redirecting WWW to non-WWW in Gitlab Page - How to Use GitLab - GitLab Forum
September 6, 2017 - I read here(GitLab Pages settings | GitLab) that Gitlab currently doesn’t support .htaccess so we can’t add redirection. But I was wondering if there’s any other way to redirect from www to non-www version apart from the meta tag redirection method. Thanks!
🌐
GitLab
lab.las3.de › gitlab › help › administration › pages › index.md
Index · Pages · Administration · Help · GitLab
This is the minimum setup that you can use Pages with. It is the base for all other setups as described below. Nginx will proxy all requests to the daemon. The Pages daemon doesn't listen to the outside world. Set the external URL for GitLab Pages in /etc/gitlab/gitlab.rb:
🌐
Medium
medium.com › @joscelyn56 › install-and-configure-gitlab-on-your-vps-edb5e522b866
How To Install and Configure Gitlab and Website on Apache Server in your VPS | by Okwu Joscelyn | Medium
October 15, 2019 - <VirtualHost *:80> ServerName <your_domain_or_sub_domain> ServerSignature Off ProxyPreserveHost On AllowEncodedSlashes NoDecode <Location /> Require all granted ProxyPassReverse http://127.0.0.1:8080 ProxyPassReverse <your_domain_or_sub_domain> </Location> RewriteEngine on RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA] # needed for downloading attachments DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public #Set up apache error documents, if back end goes down (i.e. 503 error) then a maintenance/deploy page is thrown up.
🌐
GitLab
gitlab.com › steve johnson › htaccess
Steve Johnson / htaccess · GitLab
August 26, 2015 - A collection of useful .htaccess snippets.
🌐
GitLab
forum.gitlab.com › how to use gitlab
GitLab Pages: How to configure .gitlab-ci.yml to work with one's own directory structure - How to Use GitLab - GitLab Forum
February 14, 2017 - Suppose I make a website with a basic directory structure: assets documents icons images source css js pages home.html another-page.html and I want to host it on GitLab Pages. How do I correctly configured the .gitlab-ci.yml file? All the paths within the website are relative, and it should ...