I would simply like URLS that are in the format www.mysite.com/blog to be rewritten to www.mysite.com/blog.cfm.
So, another example:
www.mysite.com/contact
would be rewritten as:
www.mysite.com/contact.cfm
What is the easiest and quickest way to implement this sort of url rewriting in Coldfusion 10 running Tomcat? Google seems to offer an array of complicated options and pages and people struggling with this, so I'm just wondering if there is a basic way to do this.
Thanks
I have used the Tuckey UrlRewriteFilter in the past with Tomcat, works great.
Related
I know I am using the wrong search terms and that's why I haven't been able to suss out the answer myself. However, I cannot seem to figure out how to use the CGI module to pull what I think counts as a query string from the url.
given a url www.mysite.com/~usr/html/cgi.py/desired/path/info how would one get the desired/path/info out of the url? I understand GET and POST requests and know I can use CGI's FieldStorage class to get at that data to fill my Jinja2 templates out and such. But now I want to start routing from a landing page with different templates to select before proceeding deeper into the site. I'm hoping the context is enough to see what I'm asking because I am lost in a sea of terms that I don't know.
Even if it's just the right search term, I need something to help me out here.
Thanks for all the help on what was actually not to complicated a question. What I was looking for was a router/dispatcher that is usually handled by a framework fairly simply though an #route or something similar. Opting for a more efficient approach all I had to do was import os and then look at os.environ.get('PATH_INFO', '') for all the data I could possibly need. For anyone else following the path I was, that is how I found my way.
I'm new to ExpressionEngine and ModX, well I've barely started reading up on it and I need some encouragement before I dig dipper into learning either of them.
I've know they're both CMS utilities which allow you to create websites and manage them as wordpress would but I'd like to know if instead of building it completely from the ground up, if one can simply use a template, like one of those free HTML templates or a premium template and use one of those two CMS utilities to manage/update the content of the site.
I've looked around for some tutorials but the ones I've found only teach how to create a site from the ground up and I don't mind reading and learning as long as someone can tell me if it's possible to do what I mentioned before.
Thanks.
Yes, you can with MODx. You can use any HTML, css, javascript you want, no restrictions.
I don't know about ExpressEngine.
Yes you can use whatever HTML you like with ExpressionEngine, whether it's code you write yourself or whether it comes from a template.
Hey guys, I'm new to template editting. I'm trying to remove a table from the Amazon's WebStore template so i can start designing my own.
Anyone out there know how I can go about hiding/disabling/removing/bypassing it?
use jquery, include the jquery.js into the store via either site wide or per page custom script area.
and slowly find your way through their html chunk. include id if necessary and do any manipulation there :)
note, if possible try to use their html widgets as much as possible and use their id as much as possible so you don't get any weird bugs.
if you need help, please put the html chunk here and i think anybody in this site will be more than willing to help you sieve through it via the magical jquery.
I am currently working on a website and i kinda need something like a cms/site builder to be integrated int the site, but not very complicated.
for example let's say i have a few templates and the users can modify them as they please(add a picture, some text, etc)
Please help.
Thank you!
look at N2 if you are working in .Net http://n2cms.com/
try joomla, drupal, or wordpress. There are also some basic wiki sites that are easy to setup and use like TWiki.
If you want to keep things very basic then SnippetMaster is an option. Your users can edit odd bits of text and even add pictures. It works best for sites with only a few pages to update. For a large site you may want to look at something more advanced.
You can build a site these days with WordPress. Actually I recommend this even if you have more complicated stuff. There are a lot of plugins and themes and over all support. If you want something simple you can have it in minutes.
You could use Joomla (PHP) or Windows SharePoint Services (.NET), but it depends what kind of thing you are really after...
Also, you could use something like VS Web Developer 2008 Express edition which'll create a basic template for you.
Here's an awesome link that I just happened to have someone send me yesterday:
Top 10 free content management systems for web site designers
How do I get form data from HTML page using c++, as far as the basics of post and get?
EDIT: CGI is using apache 2 on windows, I got c++ configured and tested with with apache already.
The easiest way to access form data from an HTTP request is via CGI. This involves reading environment variables which is done using the getenv function.
First of all take a look at webtoolkit.
You might want to use that to make your life easier.
Second you can read about network protocols.
Third take a look at your webserver docs, they might provide such interface to create a deamon that will allow you to read the HTTP socket and the data that is sent over it.
On another note next time you write a question try to elaborate as much as possible.
Explain the use case and provide a test case.
You may use CgiCC library that gives you want you are looking for. You may also try some C++ web framework like CppCMS.