dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

Overriding Base Url Issue #1686

Closed kadircanerergun closed 4 years ago

kadircanerergun commented 4 years ago
Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 5.5.x
PHP version 7.1.x

Actual Behaviour

Im using route command to generate routes. In my local everything works fine. But in production server there is an .htaccess rule as "RewriteBase /gw"

In production server routes are generated without rewrite rule "gw".

Expected Behaviour

when use route() function url should be http://{domain}//gw/{uri}

but in my case it has been generated as http://{domain}/{uri}

What should i do to add gw without breaking the original (without htaccess rule) route method.

specialtactics commented 4 years ago

Hi

You are using the old issue template, please use the new one - you need to specify your dingo version.

In any case from what you describe it seems like a configuration issue on your part, either with your server config or the interplay between that and laravel/dingo config.