skip to Main Content

.htaccess causes redirection – CPanel

Hello there I have 2 folders inside public_html ex.(mainfolder and subfolder). Inside my public_html same level with my 2 folders, I have an .htaccess file like this. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteOptions inherit Options -Indexes…

VIEW QUESTION

Laravel 8 – friendly url that call multiple controllers depending on match (products, categories, pages) – How to design it? – SEO

i would like to build a route that catch clean seo friendly url and call correct controller to display page. Examples: https://mypage.com/some-friendly-url-separated-with-dashes [PageController] https://mypage.com/some-cool-eletronic-ipod [ProductController] https://mypage.com/some-furniture-drawers [CategoryController] So I have in app route: Route::get('/{friendlyUrl}', 'RouteController@index'); Each friendly url is a…

VIEW QUESTION
Back To Top
Search