WebSite X5Help Center

 
Adriano R.
Adriano R.
User

Have someone here figured it out to remove the "index.php or Html" from the url?  en

Author: Adriano R.
Visited 1096, Followers 1, Shared 0  

Hello all,


I am trying to get at over off the "index.php or Html" from the URL. I have the mod_rewrite module set up correctly on my server, but it seems that I cannot get it to work using the code I retrieved from the internet.
I know that this is not a WebSite X5 issue or anything to do with the program features. But it would be an excellent demonstration of exceptional customer service if Incomedia offers us an easy solution to the matter. On the other hand, I will appreciate any help I can get from my kind community members. smile

.Htaccess

ErrorDocument 404 /w_api/Handler.html

RewriteEngine on

RewriteCond %{HTTP_HOST} !^www.domain.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTPS}:s (on:(s)|off:s)
RewriteRule ^/?(.*) http%2://www\.domain\.com/$1 [L,R=301,NE]

Options
RewriteEngine on

RewriteCond %{REQUEST_URI} !-f
RewriteRule ^ajax/(.*)$ /w_api/Handler.html [L]

RewriteBase /
RewriteRule ^$ index.html [R=301,L]

RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /w_api/Handler.html

Posted on the
2 ANSWERS
Adriano R.
Adriano R.
User
Author

Have someone here figured it out "how" to remove the "index.php or Html" from the url?

Read more
Posted on the from Adriano R.
Andre E
Andre E
Moderator

Adriano,

Help me out here, why would you want this?

To use somebody's full name has no shame, besides that it takes care of not excidently ending up on a wrong page.

If you use links, customer hardly sees this, so i don't understand.

Read more
Posted on the from Andre E