Hi, I need a quick fix for my .htaccess file.
Currently all URLs direct to the [login to view URL] file.
But I have made an alternative .php to which I want a couple of pages to go.
So for example:
[login to view URL]
Should keep going to [login to view URL]
But [login to view URL] should go to [login to view URL]
and [login to view URL] should go to [login to view URL]
For reference, see below my current .htaccess contents
RewriteEngine on
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
#RewriteCond %{HTTPS} off
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_URI} !\.(css|js|jpe?g|png|gif|ttf|eot|xml|swf)$ [NC]
RewriteRule ^([^/]+)/? [login to view URL]$1 [L,QSA]
RewriteCond %{QUERY_STRING} (.*?)page=(\w+)(.*)
RewriteCond %{REQUEST_URI} !\.(css|js|jpe?g|png|gif|ttf|eot|xml|swf)$ [NC]
RewriteRule ^ /%2?%1%3 [L,R=301]
#RewriteCond %{HTTPS} off
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteCond %{QUERY_STRING} page=(.*)$
#RewriteCond %{REQUEST_URI} !\.(css|js|jpe?g|png|gif|ttf|eot|xml|swf)$ [NC]
#RewriteRule (.*) /%1? [NC,L,R=301]
Hello there,
I'm a linux system administrator at a web hosting company. I've dealt with thousand of issues like this and I prove myself to be the best candidate for your job.
I've recently done similar job. I'll link to the project:
https://www.freelancer.com/projects/apache/Apache-Mod-Rewrite-Expert-Fix/
Please message me for further details.
Thanks.
Hello there,
I will fix that issue now.
Because I already worked on this type of projects.
I'll deliver this project or task within few hours only.
I happy to work with you.
You can also talk about share project on WhatsApp +91 7617855680.
Thanks.