hi, i want to modify my .htaccess file to 301 my non-www traffic to my www. I have been using this code
RewriteEngine On
RewriteCond %{HTTP_HOST} !^[login to view URL]$ [NC]
RewriteRule ^(.*)$ [login to view URL]$1 [L,R=301]
But when i do that, my wordpress site in a subdirectory redirects to the main page and does not allow my subscribers to log in.
The project is quick and simple, re-write my htaccess to allow for non-www to www redirect without messing with my other Wordpress on the same domain.
Hi,
The probably reason is that the URL of the website in the subdomain doesn't match the URL added to this line: "RewriteCond %{HTTP_HOST} !^[login to view URL]$ [NC]" so it's redirecting to the homepage. Instead of setting the redirection to www in the .htaccess, you can go into Settings > General in the Dashboard and add a "www" before the website URL, so it should open the URL with www when the website is visited. Let me know if that works. Thanks!
$20 USD in 1 day
5.0 (63 reviews)
4.9
4.9
8 freelancers are bidding on average $21 USD for this job
Hello there,
I can modify your .htaccess file with quality work and start work immediately.
I am a Responsive wordpress/woocommerce developer with 7 years of experience.
I can done job with fast turn around time. I can provide you Great Quality and 100% Complete job.
You can check My profile Here - https://www.freelancer.com/u/adityasharma91
Thanks
Pushpendra
I can start work right away!! can u send website url??
i have excellent knowledge in wordpress.
i can give you 100% satisfaction & on-time deliver your project.
✅ waiting for your message.
Thank You,
Habibur
Hi,
My name is Ertugrul. I am a full stack software engineer.
I am using a similar htaccess rule in my website.
I am available to work right now.
Thanks
Ertugrul