I’ve tried multiple ways, but my .htaccess file isn’t performing the redirect I want. It simply does nothing.
I would like to redirect a page from:
These are the last pieces of code I’ve tried, but no luck:
RewriteRule /homepage/discussions/62-info/$ https://domain.com/homepage/newinfopost/$1 [L,R=301]
RewriteRule /homepage/discussions/62-info/$ /homepage/newinfopost/$1 [L,R=301]
RewriteRule ^/?homepage/discussions/62-info/(.*)$ https://domain.com/homepage/newinfopost/$1 [L,R=301]
I have also restarted OLS every time I made a change to .htaccess through CyberPanel. Didn’t change a thing.
Restart litespeed to get changes take effect.
I’m restarting it through CyberPanel every time I make a change. Still doesn’t work.
Sorry I missed end of original post.
Not a problem!
If it helps, I have another .htacess file inside the “homepage” subfolder. It’s required by my website’s software to transform dynamic into friendly URLs, I guess. I don’t think it should be interfering though, I’m not sure.
Anyway, do you have any ideas?
htaccess handled all folder + sub sub sub sub folder
have you try
.htaccess - htaccess mod_rewrite and 301 redirect to friendly url - Stack Overflow ?
and i think you need to login to ols admin
( i never do this so i dont know )
I guess that changes my dynamic URLs to friendly URLs, but this is already done in the subfolder “homepage”.
What I’m trying to do is redirect from an already existing friendly URL to another.