php - Laravel : Redirections in a subfolder -


i'm working on local version of website developed laravel. have url : http://localhost/s/seo/userinstall returns 404 error. in app/http/routes.php , tried following i'm still getting same error :

route::get('userinstall', 'installcontroller@userinstall'); route::post('userinstall', 'installcontroller@saveuser'); 

then tried

route::get('s/seo/userinstall', 'installcontroller@userinstall'); route::post('s/seo/userinstall', 'installcontroller@saveuser'); 

i checked allowoverride directive in apache configuration file , seems fine :

<directory />    allowoverride </directory> 

i'm using defaut laravel .htacess file. idea how can fix this?

thanks

by looking url, http://localhost/s/seo/userinstall

i assuming s->seo directories under apache root directory , because have use "s/seo/userinstall" in route::get('s/seo/userinstall', 'installcontroller@userinstall');

you should add apache configuration of website path "../s/seo" assign specific domain name. such http://sandbox.local such access site http://sandbox.local/userinstall

that way, access route using

route::get('userinstall', 'installcontroller@userinstall'); 

try google it, idea about, how setup project access through local domain.

here url might you. http://headsigned.com/article/setting-up-local-development-domain-with-apache-vhosts


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -