rules for sites from Angular 6

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
PaulB75
-


Joined: 01 Nov 2018
Posts: 2

PostPosted: Thu Nov 01, 2018 6:26 pm    Post subject: rules for sites from Angular 6 Reply with quote

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 View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 960

PostPosted: Wed Nov 14, 2018 5:08 pm    Post subject: Re: rules for sites from Angular 6 Reply with quote

PaulB75,

Below is the conversion of the rules you have provided one by one:

* RewriteEngine directive:

Code:
RewriteEngine On


Nothing to convert. Adding a new rewritig rule in Abyss Web Server turns on the "rewriting engine".

* RewriteBase directive:

Code:
RewriteBase /pop/


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 View user's profile Send private message
PaulB75
-


Joined: 01 Nov 2018
Posts: 2

PostPosted: Wed Nov 06, 2019 7:35 pm    Post subject: Reply with quote

Hello,

When I do this I have page 404 ....

thanks
Back to top View user's profile Send private message
devastator82
-


Joined: 10 Mar 2006
Posts: 21
Location: Lithuania

PostPosted: Wed Nov 06, 2019 9:34 pm    Post subject: Reply with quote

PaulB75 wrote:
Hello,

When I do this I have page 404 ....

thanks


Converted with AWS_MRT, maybe this helps.

https://drive.google.com/file/d/1pNoNnh56ceS8VmYYYD-goACBIhpoZkgK/view?usp=sharing
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 960

PostPosted: Wed Nov 13, 2019 4:49 pm    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group