help asap .htaccess redirect

Need help with redirect rules on htaccess.

I got a Heroku app that has a custom domain. I want to force the custom domain to always use HTTPS and redirect all HTTP requests to HTTPS. Also, my app is a Laravel app so by default, the URL looks like this: [login to view URL] , i want to remove the "public" part so that the URL becomes [login to view URL] (App is located in a subdomain if that matters).

This is my htaccess right now:

RewriteEngine on

RewriteCond %{HTTPS} off

RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}/$1 [R=301,L]

<IfModule mod_headers.c>

<FilesMatch "\.(js|css|xml|gz|svg)$">

Header append Vary: Accept-Encoding



And it works with the HTTP redirect to HTTPS, but I cant figure out how to point it to /public/ folder.


Compétences : Nginx, PHP

en voir plus : htaccess redirect folder, htaccess redirect specific url, htaccess redirect page, htaccess redirect to subfolder without changing url, htaccess redirect generator, htaccess redirect domain, htaccess redirect url to another url, htaccess redirect 301, i need a ruby on rails programmer help asap, need help web htaccess, htaccess redirect referer, htaccess redirect referrer, htaccess redirect mobile users, oscommerce htaccess redirect, htaccess redirect osc, htaccess redirect rules, htaccess redirect cloaking, htaccess redirect dynamic static, htaccess redirect dynamic dynamic, use choose check default paypal

Concernant l'employeur :
( 0 commentaires ) Sweden

Nº du projet : #16921137

9 freelance font une offre moyenne de kr197 pour ce travail


Nginx, PHP Hi sir/madam, I am an expert web programmer with more than 6 years’ experience in latest web development technologies.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% SEK en 6 jours
(25 Commentaires)
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% SEK en 1 jour
(29 Commentaires)

Hello, may i help you on this task ? looking your response. i am expert in .htaccess redirect Thanks

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% SEK en 1 jour
(17 Commentaires)

i am expert in configuring htaccess redirect, i can easily help you correct the htaccess file and redirect to the https.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% SEK en 1 jour
(15 Commentaires)

I have more than 25 years of experience in web/software development and system administration. My latest work is [login to view URL] Have worked on many simple to complex projects in the following Skills Fu Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% SEK en 1 jour
(5 Commentaires)

Hi. I am Vojislav, a fully professional and experienced web developer and web designer. I can make: Websites / eCommerces / Online Stores / WooCommerce / Blogs / I can easily develop websites in CMS: Years Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% SEK en 1 jour
(2 Commentaires)

A proposal has not yet been provided

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% SEK en 1 jour
(0 Commentaires)

I can fix this issue for Free. However, I do hope to work with you on future projects related to web development, digital marketing, software application development, managed cloud hosting services and more.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% SEK en 1 jour
(0 Commentaires)
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% SEK en 3 jours
(0 Commentaires)