skip to Main Content

Handle one query parameter specifically – Apache

I need to handle one query parameter specifically. The url can look like the following: https://example.com/?app=egov&map=1337 https://example.com/?app=egov&map=1337&showoptions=true https://example.com/?app=egov&map=1337&showoptions=true&anotherparam=helloWorld The redirect should point to https://example.com/contextName/resources/apps/egov/index.html?map=1337 https://example.com/contextName/resources/apps/egov/index.html?map=1337&showoptions=true https://example.com/contextName/resources/apps/egov/index.html?map=1337&anotherparam=helloWorld As you can see, the app-Parameter needs to be used as an URL-part; the…

VIEW QUESTION

Problem in root route in laravel 8 Using illuminate – Apache

This is my first time asking questions in StackOverflow so sorry for the mistakes. I have a problem with laravel routes. <?php use IlluminateSupportFacadesRoute; //start :: login Route::group(['namespace' => 'auth'], function () { Route::get('/', 'AuthController@index')->name('index'); Route::get('/showResult', 'AuthController@Result')->name('Result'); Route::post('/showResultds', 'AuthController@showResult')->name('showResult'); Route::post('/dologin',…

VIEW QUESTION

Intermittent RewriteRule – Apache

This is my rewrite rule in .htaccess: RewriteRule ^quiz/([A-Za-z0-9-]+)/([0-9-]+)/?$ quiz/index.php?inv=$1&d=$2 [NC,L] It works perfectly fine for these URLs, which have a mix of cases, with and without hyphens, and all with a date for the final segment: http://localhost/quiz/C-PFM/2021-04-30/ http://localhost/quiz/cpf-o/2021-04-30/ http://localhost/quiz/ipa/2021-04-30/…

VIEW QUESTION
Back To Top
Search