Fermé

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

</FilesMatch>

</IfModule>

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

Thanks

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

topithub

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)
5.8
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% SEK en 1 jour
(29 Commentaires)
4.9
mindmagicexpert

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)
4.3
manum11

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)
3.9
vinisaac

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)
3.2
vdizajn

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)
1.3
playersplate

A proposal has not yet been provided

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

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)
0.0
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% SEK en 3 jours
(0 Commentaires)
0.0