-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can remove /web from URL? #7
Comments
Hi @faravaghi It is better if you use virtual host so you can decide what URL you want to use. More info https://httpd.apache.org/docs/2.2/vhosts/examples.html |
thx friend, |
@faravaghi yes, it can :) |
well, how? |
@faravaghi You found any solution? |
Hi mvofreire, |
@faravaghi i found a simple solution, but i dont know is better one! i created a file "index.php" at /api - (root) with the following code
And i Created .htaccess file in the same directory
I tested in postMan "http://localhost/serverRest/api/v1/countries" and got this response
-- Sorry for my English |
ISSUE1: Invalid Parameter – yii\base\InvalidParamException I see a vendor/bower-asset directory, but not a vendor/bower directory.... Please help. SOLVED: by renaming vendor/bower-asset directory to vendor/bower ISSUE2: yii\web\Request::cookieValidationKey must be configured with a secret key. SOLVED: under common/config/main-local.php
|
Hi @deerawan,
how can remove /web from url?
for example
localhost/api/web/v1/countries
becomelocalhost/api/v1/countries
.or remove /web/v1?
please Describe how to change the form
http://api.example.com/countries
The text was updated successfully, but these errors were encountered: