we are trying to build our documentation website with docusaurus. We are closed to launch our product. But we are facing problems with the deployment. We are trying to host the website with vercel. The problem we are stated below.
We configured…
I want to disallow crawling of a directory /acct in robots.txt Which rule should I use?
Disallow: /acct or Disallow: /acct/
acct contains sub-directories and files both. What is the effect of a trailing slash?
On Apache 2.4 I have an .htaccess (in a subfolder) which rewrites slashless requests inside that folder to appropriate index files:
DirectorySlash Off
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !/$
RewriteCond…
I am forcing my website to add trailing slash, but it is showing error - Too many Redirects.
I have used these two methods to add traling slash and both gave error.
function add_slash( $string, $type ){
$string = trailingslashit($string);
…
I have a MVC project with razor pages. I am moving some razor pages in static html pages but I do not like I see in url the index.html extension.
I only wrote a 301 redirect rule:
I wish to remove a trailing slash when one is given using htaccess. What would be the best way to do it that will work with my existing rules as below:
# make sure www. is always there
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$…
I've a problem with some rewrite rules for my URL, I'm using this rule to remove .php from the URL of my website
Options +SymLinksIfOwnerMatch
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule…
I have an nginx server running on port 8080 that sits behind an AWS Application Load Balancer. I have the following location block in the nginx.conf,
location / {
limit_except GET { deny all; }
root /root/of/project/;
…
I'm having some "issues" with a project in Nuxt.js. I have created three pages: register.vue, login.vue and index.vue.
I was trying to do some functions with middleware in order to redirect between views in case that one user was logged in or…
I want to set up the below things in Cloudflare.
https://example.com// OR https://example.com// OR https://example.com/// OR onwards
are redirecting to https://example.com/
How can I set up this using the Cloudflare page rule?
I used Google Data Studio to combine a large website sitemap containing the Page URL with the Google Analytics performance data for the same Page URLs going back five years. I am attempting now to identify the navigational depth of each of those…
How can I redirect "http://test.com/" to "http://test.com" with Nginx?
I tried
rewrite ^/(.*)/$ /$1 permanent;
But this work only for http://test.com/anything/ not for root
Thanks a lot
I've seen lots of examples of redirecting all the files in a folder using rewrite rules, but is it possible (and if so, how!) to redirect a page ending with a trailing slash to a completely different page ending with .php in a different folder or…
I've tried all sorts of suggestions for .htaccess but nothing seems to work for some reason.
All i want is to redirect all of the .php files in http://www.pokertips.org/blog/ to a non-php ending. I've tried it with a .htaccess file in the /blog/…