bsc44
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Stop a html file in sub folder from redirectingOkay pleased to report that this is now solved! All with a rather simple fix lol…
I simple added the following code BEFORE the#Begin WordPresssection in the .htaccess file, so that the/live/subfolder links are dealt with BEFORE passing them down to wordpress to handle.RewriteEngine OnRewriteCond %{REQUEST_URI} ^/live/project1$RewriteRule ^live/project1$ /live/project1.html [L]
Woot!Forum: Fixing WordPress
In reply to: Stop a html file in sub folder from redirectingThanks for the reply. I should perhaps expand on the usecase for the /live/project1.html file.
The project1.html file that is located in the /live/ subfolder is a completely seperate thing and has nothing to do with the website or wordpress in general. It’s just a seperate .html file which is used by users of the project which I created a few years, so the link still needs to remain active. When i originally linked the live project file link i always shared the link around without the .html extension as it looked cleaner, and made sure the .html was hidden from the domain url in the browser.
Fast forward some time and now on my website i have information about that specific live project, which is a project information page if you like, located on my wordpress website under the xxx.com/projects/project1 url permalink (along iwth many other project pages), so this is why i have the need for the external xxx.com/live/project1.html link to work still, and why also there is some sort of conflict because wordpress just thinks people are trying to visit the project1 wordpress page.
Anyways, without any automatic redirection from wordpress everything works perfectly, its only because wordpress is trying to be ‘smart’ and pull visitations of the /live/project1 link back to wordpress.