What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Would this htaccess code prevent a link from leaving the website?

bdp31770

New member
Joined
Oct 21, 2024
Messages
2
Reaction score
1
HTML Coins
0
On this wordpress page https://stealthvideo.com/test/ the 'click here to view demo' link just under the header is supposed to go to https://cctvconnect.com/demo/cameras/grid
Instead, stealthvideo.com is being inserted in that link so it fails.
I checked the link, there is not stealthvideo.com in the link. I asked the wordpress theme developers, they said if the link is correct then it's probably an htaccess issue. I pasted the htaccess code into chatgpt, it said that code would not prevent a link from 'leaving' the website.
This is the htaccess code:
# BEGIN WP Rocket

# END WP Rocket

# SGS XMLRPC Disable Service
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
# SGS XMLRPC Disable Service END


#Begin Really Simple Security
Options -Indexes
#End Really Simple Security
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# SGO Unset Vary
Header unset Vary
# SGO Unset Vary END

If anyone knows whether that code would prevent a link from leaving a site, somehow inserting the domain in the front of the url, please let me know. Any feedback is appreciated, thank you.
 
I figured it out, answering here in case anyone else has this problem. A clients wordpress site had some code in the htaccess file that was preventing outbound links from working. The plugins were no longer installed. I copied an htaccess file from a staging site on the same hosting and that fixed the problem.
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back