Rewrite rule on multiple variables using Apache mod_rewrite
Hi, I would like to know how can I rewrite www.site.com?lang=lv&type=1&mode=2 into www.site.com/lv/1/2 using Apache mod_rewrite options. ...
Hi, I would like to know how can I rewrite www.site.com?lang=lv&type=1&mode=2 into www.site.com/lv/1/2 using Apache mod_rewrite options. ...
I need to have a RegEx that will match a URI like this based on the subdomain "blog"-- http://blog.foo.com/2010/06/25/city-tax-sale/ and redirect like this (getting rid of the subdomain and numbers/date)-- http://foo.com/city-tax-sale/ where the last bit "city-tax-sale" would be a wildcard. So basically any incoming URI that starts ...
I'm totally new to this. How could I make my app, in the menu I did, just open for example www.google.com? My trouble is in the code to make this happen - I already have the graphic stuff with the menu. ...
I have a file called image.php and one called index.html. This code is in index.html <img src="image.php"> Now, is it possible for the image.php file to know that it was called by the index.html file ? If so, how? ...
I was reading though this other question which has some really good regex's for the job but as far as I can see non of them work with BASH commands as BASH commands don't support such complex rexeg's. if echo "http://www.google.com/test/link.php" | grep -q '(https?|ftp|file)://[-A-Z0-9\+&@#/%?=~_|!:,.;]*[-A-Z0-9\+&@#/%=~_|]'; then ...
in my app, i want to use a css file, but the tempalte doesn't 'know' where the file is, though i've configured it as in tutorials: in the urls.py (the urls file in the root of the site, not belonging to an app) (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}), in the tem...
I have a application which requires the user to input some values. From these values a URL is generated. However if the user enters special symbols like e.g. german vowels or other strange symbol, there is an exception when I try to create a URL. So i have two questions: What is the best way to detect if a URL is a well-formed URL? How...
I've got an url like this: http://www.somewhere.com/index.html?field[]=history&field[]=science&field[]=math Using jQuery, how can I grab the GET array? Thanks. ...
Is there any advantage to have a URL with a hash written with slashes around it. For example: http://www.example.com/#/profile Does it SEO better? I thought anything after a slash was not indexed. ...
Hello, I have a multilanguage site and I'm trying to rewrite the URL's with a fake directory something like this: http://localhost/theSite/page.php?id=param&cat=param?lang=en,fr,es to http://localhost/theSite/(en|fr|es)/page/param/param .htaccess Options +FollowSymLinks RewriteEngine on RewriteRule ^(fr|en|en)/(.*) $2.php?id=$1&ca...
In C#, is there any built-in way to "correct" URLs that have parent pathing in them? So, I want to take this: /foo/bar/../baz.html And turn it into... /foo/baz.html (The "bar" directory being negated by the ".." after it in the path.) I've tried to hand-roll this, but the logic gets pretty ugly, pretty quickly. Consider something...
Hi, Rather than calling it a question, i would like to call it a discussion and the topic is Flex Remoting. Forms and blogs explaining remoting in flex always mention 2 things: service-config.xml endpoint url Now what i want to know is that 1. is service-config file actually needed if we need to bind our front end (which ...
Hi, I've got a problem with Zend Framework, when calling an action. This action is called "uploadvideo" inside a controller called "UploadInterfaceController". Therefor the view is called "uploadvideo.phtml". Now all this is wrapped in a module called "Upload". The problem is, that I cannot call a link inside the uploadvideo.phtml. I ...
Is there a method that can post a status to Facebook or Twitter. Twitter has this: http://www.twitter.com/?status=This+is+the+status+that+will+be+grabbed+by+Twitter What about Facebook? Thanks. I know about doing it by cURL, but I'm not asking about that :p ...
I have multiple hidden form fields which store values about the the current view (e.g. if certain, normally hidden div's are visible etc.) to restore the layout when the form posts back. The problem is that I'm always submitting all these hidden fields, even if they are in default, generating lots of unnecessary URL clutter in the proce...
I have created a custom settings page that looks nearly identical to the Settings->Administration page. I have a sitemap item to display this custom page. For some of the custom items, I want the link to redirect to the default CRM grid on a particular entity. This would ideally work similarly to Settings->Administration->Teams page. ie...
I have pass url to another page via javascript .For example www.example.com/share.php?url=http://google.com/ (I create whole url via javascript , I add my url variable to static string (which is www.example.com/share.php?url= ) and I redirect user to this page). But while I am passing url variable to share script , special characters(ğü...
hello, basicly I would like to read url params in an array so finding params don't depend on their place in url I have a url for seach with controller/action/paramA/valueparamA/paramB/valueparamB theses params are optional : I have direct url with search params inside to read params from url we have to use action(valueparamA, valuepara...
Hi, everyone, I want to ask an iPhone application, it is about the adding cookies of GET and POST in NSURLRequest and NSURLResponse. In my program, the user has to enter uesrname and password. After entered the information, the user will press a button. When the user presses the button, the program will call a function 'pressLoginButt...
I usually like defining my pages to know exactly what page does what. However, on a number of sites, I see where the filename is hidden from view and I was just a little curious. Is there any specific benefit of having URLs appear like this: http://mydomain/my_directory/my_subdirectory/ As opposed to this: http://mydomain/my_directo...