Description
This function lists all of the mod_rewrite
changes for the account's Ruby on Rails application. For more information on mod_rewrite
, read The Apache Software Foundation's documentation.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
appname |
string |
The application's name. |
A valid string. |
Test |
domain |
string |
The domain name. |
A valid domain name. |
example.com |
rewritebasepath |
string |
The path to the directory that contains the.htaccess file which contains the rewrite. |
A valid absolute directory path. |
/home/example/public_html |
url |
string |
The URL appendage to the rewrite. |
A valid path. |
testruby |
port |
integer |
The application's port number. |
A positive integer. |
12001 |
reason |
string |
A reason for failure. Note: This function only returns a reason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |