Mod_rewrite to handle paths ?


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Mod_rewrite to handle paths ?

I hope someone can help. I somewhat know what a mod_rewrite does which is URL rewiring. What I don't know is how to make the mod_rewrite to handle paths ?
Can this be why an AngularJS file is not being loaded ?
# 2  
Normally web developers do not use mod_rewrite for routes in SPA web apps built on AngularJS, React or VueJS. They use Javascript libs like express.js or some other routing package for managing SPA routes
This User Gave Thanks to Neo For This Post:
# 4  
No.

We do not use mod_rewrite for SPA - style web apps.

The routes in an SPA web site is considered a single page, not multiple pages; and the routing is performed internally within the SPA using Javascript.

Express.js is a popular routing package, but there are others.
This User Gave Thanks to Neo For This Post:
# 5  
I'm trying to run an app on my server, but that app requires access to a Angular.js file. Therefore, could it be because my mod_rewrite files is not setup to handle paths, that the Angular.js file cannot be access, causing the app not to load properly ?
# 6  
No, it is not a mod_rewrite function when your web server cannot find the Angular.js library.

Your app cannot find Angular.js because you have not configured your app properly.

Did you build the app using node.js?

Or did you build the app without using node.js?

Please post your index.html file in your app (wrapped in CODE tags).

Thanks.
This User Gave Thanks to Neo For This Post:
# 7  
I never built the app, someone else did; I only am trying to get it installed and that is what the author informed me is the problem.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Mod_rewrite http to https
arumon
Hi Team, I have a question on the apache mod_rewrite module. I have a requirement of rewriting only specific url's to https. Requirement below:- want to match a word (test) on the url and if matches then it should rewrite to https. example:- ...... Web Development
1
Web Development
Difference between handle to the thread HANDLE and thread identifier pthread_t
rupeshkp728
This question might be silly but its confusing me a bit: What is the difference between handle to the thread HANDLE and thread identifier pthread_t? ---------- Post updated at 01:52 PM ---------- Previous update was at 01:48 PM ---------- Sorry I saw details and HANDLE is in windows and...... UNIX for Dummies Questions & Answers
0
UNIX for Dummies Questions & Answers
mod_rewrite help
Adrnalnrsh
Here's my situation. When a user access the site domain.com it redirects to /portal which displays SKIN1 by default. When a user accesses the site domain.com/portal?branding=SKIN1 it displays SKIN1 by default as well. When a user access the site domain.com/portal?branding=SKIN2 it...... Web Development
0
Web Development
mod_rewrite RewriteMap - possible to 404?
sneakyimp
In my strenuous efforts to get SEO-friendly urls, I'm using a rewrite map in my apache setup: RewriteEngine on RewriteOptions MaxRedirects=5 RewriteMap seo prg:/Applications/MAMP/htdocs/map.php #map requests for the original file to the new SEO friendly urls RewriteCond...... Web Development
0
Web Development
mod_rewrite problem
arsonist
hi i'm very new to mod_rewrite. I can't seem to have this work. I have a site which has 4 pages : home, links, adverts and contacts page. the adverts page is linked to this url http://www.xxxxxx.com/adverts.php. What i want is that whenever the adverts page is clicked , it will show...... Shell Programming and Scripting
0
Shell Programming and Scripting

Featured Tech Videos