im using bolt for a little time now and have never done anything with htacces files before. my question in this tread is, how do i put a trailing slash in a url generated by bolt. i was trying stuff out and looking things up on how to do this. but i…
I've got this set up on my apache configuration file:
ProxyPassMatch ^/webdocs/(.*)$ http://other-domain/webdocs/$1 retry=0
ProxyPassReverse ^/webdocs/(.*)$ http://other-domain/webdocs/$1 retry=0
So when users access to the subdirectory webdocs in…
I have the following content in my .htaccess file place in the root directory:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*[^/])$ /$1/…
i have been contiously upgrading my htaccess file. however, there are 2 issues I just cant seem to fix. I have tried several approaches but nothing really worked for me.
my website: https://www.zeroohm.com/
my questions:
How can I remove the extra…
I would like to enforce a trailing slash on all URLS except on filenames. Here is my .htaccess file so far.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?(.+)
RewriteRule ^…
Hoping one of you can help. I am developing using php, without a framework, therefore all of my routing rules are in .htaccess as opposed to .php
So here is my problem. Say my website is http://example.com and my navigation is pretty straight…
I have an Angular app using ngRoute module along with HTML5 mode pushState for cleaner URL.
app.config(function($routeProvider, $locationProvider){
$locationProvider.html5Mode(true);
$routeProvider
//Route for home page
.when("/", {
…
I'm having a little trouble with my site's .htaccess file. I want to have both the page.html and page/ URLs redirect to page without any suffix. I've been able to get the .html off, but when entering the page/ URL I get an internal server error no…
I have a database of articles with the urls as follow:
person/albert-einstein/ (trailing slash)
person/albert-einstein/1 (no trailing slash)
And I was wondering what was the best way to handle url trailing slashes in Codeigniter 3?
This is what I…
I'm a little stuck. I have the following redirect in .htaccess
Redirect http://www.domain1.com http://www.domain2.com/subdomain=
Although I want that if someone types www.domain1.com/12345, it will automatically append the 12345 to the redirect URL…
htaccess | 301 redirect | URI Issue
I recently applied this code to my htaccess to enforce the trailing slash on my URL:
#Trailing backslash
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.example.com/$1…
The nginx.conf below is working, except to the home page that localdomain, redirects to localdomain/index/.
This confing redirects .php to / trailing slash , and phpless url to trailing slash as well.
Obviously though , something is wrong, and all…
How do I get rid of the trailing slash on my site?
For example, I have an index.html at
http://example.com/examplepage/index.html
Instead of
http://example.com/examplepage/
I would like the URL to be
http://example.com/examplepage
Could…
I use the configuration below in .htaccess file to force trailing slash at the end of the url.
But this setting is not good when an url is wrong (city parameter is not present in the database) because it redirect /wrongcity to /wrongcity/ instead to…
I'm trying to clean up urls from extensions and php get language variables:
test.com/en/ => test.com/?lang=en
test.com/ro/page/ => test.com/page.php?lang=ro
Here is my .htaccess:
AddDefaultCharset utf-8
Options +FollowSymlinks…