When I upload documents using Erica into CouchDB it removes my rewrites. Is there a way to configure my rewrites in Erica? If so I've been unable to figure it out, any help would be great!
Aha! Got it! So simple... Just add a rewrites.json file to your app directory and it will push it up along with everything else.
Related
Ok, I am brand new to ruby and Sinatra and I am embarrassed to say I cannot for the life of me find out how to use a link tag in Sinatra. I just need to link, from my index.erb, to a static page, about.html. About is not working. How can I do this? Thanks a lot!
I think you're looking for something like:
About
You're going to want to locate this about.html file in the /public folder of your application.
If you want to overwrite using that location for another one, you can do so with :public_folder and is fairly well described at: http://www.sinatrarb.com/configuration.html
I hope that helps.
This is my first attempt at using Magento to develop a site. I have to admit the learning curve has been steep, but i have been able to navigate most of the challenges thus far. Here at the final hurdle, however, i have stumbled.
Specs:
Magento 1.7.0.2
Apache version 2.2.22
PHP version 5.3.10
MySQL version 5.1.65-cll
Magento is located in a folder on the server named magento one directory down, as in http://www.mydomain.co.za/magento
Problem:
No images are displayed in the front end or backend. It is as if it cannot access the stylesheets. When viewing the source, i can see that the paths are wrong. It searches for the stylesheets in http://www.mydomain.co.za/ and not in the magento folder. I can access the backend by typing in http://www.mydomain.co.za/magento/index.php/admin and that brings up the backend without any styling. After that however, every request results in 404. The URL looks like http://www.mydomain.co.za/magento/adminindex.php without a slash between admin and index. Introducing that slash manually after every 404 results in correct page being displayed (still without styling). So clearly the problem is here, but i can't seem to fix it. And YES, i do have the slash after the path in the database for both secure and unsecure.
Attempts to solve:
Changed the url’s in database link
Changed app/etc/local.xml to use correct database
Changed .htaccess to include this line: RewriteBase /magento/ (but i
removed it again)
Deleted the appropriate cache and sessions folders
Tried some of the suggestion given here link
Now, i am stuck. I have worked my way through error upon error (no fault of Magento, just the learning curve) and i am tired… :-( If someone can please give me some advice as to what to try next, it would be greatly appreciated.
I found these links of the (seemingly) similar problem. Clearly there is something happening here. The other thread never solved the issued, just found a work around. Is it possible that we have run into a bug? Something is stripping that slash out and it isn’t any of the usual suspects… dum dum dum
link
link
I'm a beginning Magento programmer. I used to access the backend as localhost/magento/admin and everything was working fine on WAMP. I could access any route I set up in config.xml as localhost/magento/(frontName) and my controllers were working fine.
Then I was trying to get Zend Debugger working with Eclipse, and in the process I fiddled with things, reinstalled WAMP and Magento a couple of times, installed Zend Server CE and later removed it, and MAYBE fiddled with some settings - don't remember exactly what I changed.
Ultimately, I'm back on WAMP, but now localhost/magento/admin is broken and the backend must be accessed as localhost/magento/index.php/admin, which is ugly. Also, I can't get any routes working. localhost/magento/(frontName) is broken, localhost/magento/index.php/(frontName) gives a 404 error within Magento.
I've been trying to fix this for nearly 2 days now; I'd be grateful for any help. Sorry about the n00b question.
And you are sure the mod rewrite is enabled? Can you get to the frontend at all? do you have sample data installed can you get to any products or categories?
you probably didn't understand very well how works exactly the config.xml in your controller. look at http://www.pierrefay.com/magento-create-controller-36
good luck
dont worry it is not an another how to remove index.php from url question!! :D
i researched and made according to tutorials; here is my source
http://codeigniter.com/wiki/mod_rewrite/
im sure about all steps, but when run it, i dont see any error message… url changes like
www.blablabla.com/contact
www.blablabla.com/about
but it always display homepage :/ thats weird!!
what can be problem? any idea?
thanks a lot! appreciate helps!!
if it always displays the home page it could be that your application isn't configured properly.
Check the system/application/config/config.php file and find the $config['uri_protocol'] option.
If you notice, in the comments there are a number of options you can try. I've found that sometimes on different servers I need to try different options before it will work (I think it's something to do with the PHP configuration, the AUTO option doesn't always get it right).
http://www.codeplex.com/IIRF/Thread/List.aspx
My webhost installed IIRF for me and I am convinced that they did not do it correctly. I've tried numerous examples including one that I know works with apache's mod_rewrite but I can't get anything to work with IIRF. Is there rule or configuration option that you guys have that you know of that will show whether or not the thing is working correctly?
Even something like rewrite all urls to anothersite.com will will help me right now. I hope you guys realize the reason I came for your help. I can figure out how to do the rewrite rules on my own but I don't know if the errors are because of me or the webhost. I have limited options as well since I am on a shared webhost.
The new version of IIRF, v1.2.16 R3, includes a StatusUrl directive that will give you a status page if you do an HTTP GET on it. It looks like this:
If you get that page, then IIRF is running.
This is tested and working with IIRF:
RedirectRule ^.*$ http://www.google.com/ [I,R=301]
It will match any URL and redirect to Google.