Questions tagged [connect-modrewrite]
12 questions
6
votes
1 answer
Livereload Html5 Pushstate with AngularJS, ui.Router and yeoman
I want to fix the livereload with my angular js app. I am using yoeman ui-router with html5 push state.
What do a have to do?

Seb
- 888
- 12
- 20
2
votes
0 answers
Error using middleware to redirect grunt server to root
I have tried all solution listed here and here but I always end up with an error similar to the one below :
TypeError: Cannot read property 'forEach' of undefined
at grunt.initConfig.browserSync.livereload.options.middleware (...
or
TypeError:…

frazras
- 5,928
- 4
- 30
- 40
1
vote
2 answers
stateProvider using htm5Mode cannot GET error
I am using stateProvider with $locationProvider.html5Mode:
// Redirect any unmatched url
$urlRouterProvider.otherwise("/cool");
$stateProvider
// Dashboard
.state('cool', {
url: "/cool",
…

Alvin
- 8,219
- 25
- 96
- 177
1
vote
0 answers
bower foundation-icons-fonts is not found in distribution version
I'm developing an angular application using yeoman, all is working nice but I'm having some troubles because in distribution version my application is not able to find these files:
http://localhost:9000/styles/foundation-icons.woff (404 Not…

Rodrigo Cifuentes Gómez
- 1,304
- 2
- 13
- 28
1
vote
1 answer
Grunt: Location URL app with period
In one webapp that I'm working with, I have deal with URLs like the one below:
http://localhost:8080/section/value.with.periods
This value.with.periods is a URL param, like the ones that you declare on angular's…

Mateus Leon
- 1,381
- 1
- 14
- 21
1
vote
1 answer
Routing all traffic through index.html except 'api'
Working on a BackBone app that has this mod_rewrite in place to handle routing all traffic through index.html that isn't targeting a file:
modRewrite(['^[^\\.]*$ /index.html [L]'])
It's working beautifully, but now I need to update it so that it…

Brandon Durham
- 7,096
- 13
- 64
- 101
0
votes
1 answer
connect-modrewrite changes my POST request into a GET
I need to redirect a POST request, and to demonstrate the issue I have setup 2 nodejs servers. One serving some HTML and doing the mod-rewrite and the other receiving the POST after the rewrite. The first one which serves HTML and doing the rewrite…

Jeanluca Scaljeri
- 26,343
- 56
- 205
- 333
0
votes
1 answer
URL Authentication Not Working on Apcahe2.4 version with Amazon Linux AMI
Apache 2.4 Version configuration file is enabled with "mod_rewrite" module.
LoadModule rewrite_module modules/mod_rewrite.so
Authentication Modules Loaded and shared the output for the command : apachectl -M | grep 'auth'
auth_basic_module…

Marikkannan
- 1
- 2
0
votes
2 answers
Regex match on exact string - getting into a loop
Need help in solving this regex issues, I am stuck at, and not able to solve. I am using nodejs 6.10
For example following are the incoming patterns
test
test123
test/
I need help creating a regex match so -
- only test is matched, and not…

Vivek Sharma
- 3,794
- 7
- 38
- 48
0
votes
1 answer
Grunt returns Cannot GET/ , ModRewrite does't work
I'm very new to Grunt (started this Friday).
when I run Grunt Serve, it opens a page with just the words "cannot GET/" on it. I found the ModRewrite fix and implemented it.
Yet when I try to get my grunt working, it still returns the same…
0
votes
2 answers
javascript Invalid regular expression with token '\'
i created the following regex for finding a url matching a word in the complete path and that does't contain the point character.
(\path\?*)([^.]*)$
It works on https://www.regex101.com/#javascript, but on grunt in the connect task when i define…

Martin Bohm
- 35
- 4
0
votes
0 answers
yeoman/generator-angular HTML5Mode problems
I am running yo --v 1.1.2 and angular-generator --v 0.10.0 to create a new app,
Enabling HTML5Mode was a little bit tricky since I needed to use server rewrites to avoid 404 errors when I hit the url in the browser.
So I followed the instructions…

Evan Lévesque
- 3,115
- 7
- 40
- 61