Category ".htaccess"

Url redirect from one to another url using htaccess

Currently this is in my .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /dev/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FI

Laravel Lighthouse-PHP GraphQL (Server cannot be reached)

I'm using Laravel - Lighthouse-PHP GraphQL server, and when I deploy it to production, I have to write public in the URL in order to work: https://example.com/g

Why do I have an https www redirect error with my single SSL certificate enabled domain?

My web server is in the cloud, a VPS on Vultr. I have added the following lines to my apache.conf file: Options -Indexes +FollowSymLinks AllowOverride A

While redirecting all pages with .htaccess my codes are conflicting

I am trying to redirect to https://example.com from https://www.example.com, http://example.com, http://www.example.com ------------------ and ---------------

Why does dispatch.fcgi show up in my address bar?

Would love any help on this. It's confusing me! This started happening suddenly and I'm not really sure why. When you type my website address, https://www.examp

Why does dispatch.fcgi show up in my address bar?

Would love any help on this. It's confusing me! This started happening suddenly and I'm not really sure why. When you type my website address, https://www.examp

301 redirect htaccess to right URL

I would like to redirect újdonságok-c-1.html to ujdonsagok. The .htaccess file is now: RewriteRule ^újdonságok-c-1.html ujdonsagok [

Resolve content in subdirectory but keep the path in the browser

My goal is this: We have site that lives in a webroot which is /web. It contains the .htaccess file but we want to serve up the content from /web/content but we

HTACCESS / Redirect all pages from Alias-Domain to Main-Domain except one Pathsegment

i have an alias domain "example.tld" and i want to redirect all pages to the main "domain example.de" except of one path. because we need "example.tld" only for

want to redirect my domain to another domain but also need to extract some data from first domain and use it in redirection using .htaccess

I have a domain http://order.pipasha.co.uk/ that is pointing to http://perkss.co/ by using IP address, this does not change current domain in url tab. Now I wan

Redirect rule to remove query string from URL

Have been trying to write a redirect rule with query string but did not succeed. I have the URL example.com/blog/?page=1 or example.com/blog/?hello, so it does

Vite outDir outside of the project root

I am building Vue3 project with Vite and I am using Vite build.outDir option to build the project outside of the Vue3 app root. This is my project structure, wh

HTTP authentication with PHP for specific pages

I have been trying to fix one issue for the last two weeks but didn't find any solution to my problem. So, I am trying to add HTTP authentication with PHP 7.4.

How to redirect URL with query string without name to new url

I have these URLs https://example.com/team?1892 https://example.com/team/?1892 which I need to redirect to https://example.com/team/whatever/ How can I do tha

htaccess how to prioritize RewriteCond

We recently migrate our new website and we need to adjust htaccess to avoid 404 error with the search engine, The website was a Multilanguage site we decided to

htaccess fails to allow domain access to sub-directory

I have a sub-directory on a site with a zip file in it. I want to limit access to the zip file to certain domains. I have tried many methods but none are workin

.htaccess do not preload files on Ajax calls

I have some website running with PHP. In my .htaccess I have added the following directives: <FilesMatch "index.php"> Header add Link "</css/bo

.htaccess Use variables to check if subpage exists

I have a website, which is a one-pager JS-based site. It has different "subsites" and "categories", but since everything is controlled via JS, and since there a

Create missing .htaccess file in wordpress and add the default wordpress .htaccess rewrite rule in it

I am stuck in a difficult situation here I have hundreds of addon and subdomains under my "public_html" having WordPress instances inside them. While cleaning u

Specify Image Size With .htaccess

I want to be able to add some code to my .htaccess file that allows me to generate differently sized images by adding "?w=100&h=100" after the URL. Does any