View previous topic :: View next topic |
Author |
Message |
PaulB75 -
Joined: 01 Nov 2018 Posts: 2
|
Posted: Thu Nov 01, 2018 6:26 pm Post subject: rules for sites from Angular 6 |
|
|
Hello,
I want to help to convert this rules :
RewriteEngine On
RewriteBase /pop/
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.html [L]
from Angular 6.
Thanks |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1298
|
Posted: Wed Nov 14, 2018 5:08 pm Post subject: Re: rules for sites from Angular 6 |
|
|
PaulB75,
Below is the conversion of the rules you have provided one by one:
* RewriteEngine directive:
Nothing to convert. Adding a new rewritig rule in Abyss Web Server turns on the "rewriting engine".
* RewriteBase directive:
This will result in having each rule set as "Relative" and with /pop as it "Base Path".
* Conversion of the first rule:
Code: | RewriteRule ^index\.html$ - [L] |
=> Add the following URL rewriting rule to your host:
Code: | Type: Relative
Base Path: /pop
Virtual Path regular expression: ^index\.html$
If this rule matches: Perform an internal redirection
Redirect to: $0
Append Query String: checked
Escape Redirection Location: checked
Next Action: Stop matching |
* Conversion of the second rule:
Code: | RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.html [L] |
=> Add the following URL rewriting rule to your host:
Code: |
Type: Relative
Base Path: /pop
Virtual Path regular expression: .
Conditions:
Condition 1:
Variable: REQUEST_FILENAME
Operator: Is not a file
Condition 2:
Variable: REQUEST_FILENAME
Operator: Is not a directory
If this rule matches: Perform an internal redirection
Redirect to: index.html
Append Query String: checked
Escape Redirection Location: checked
Next Action: Stop matching
|
We'll be waiting for your feedback. If there is any problem, please send us by email your abyss.conf file and let us know which URL is misbehaving. _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
PaulB75 -
Joined: 01 Nov 2018 Posts: 2
|
Posted: Wed Nov 06, 2019 7:35 pm Post subject: |
|
|
Hello,
When I do this I have page 404 ....
thanks |
|
Back to top |
|
|
devastator82 -
Joined: 10 Mar 2006 Posts: 31 Location: Lithuania
|
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1298
|
Posted: Wed Nov 13, 2019 4:49 pm Post subject: |
|
|
PaulB75 wrote: | Hello,
When I do this I have page 404 ....
thanks |
Please get in touch with our support by email. Send us your abyss.conf file, a reference to this forum post and an example of an URL that misbehaves with these rules. _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
|