I use codeigniter as my main install on the main domain. I have created a subdomain and a folder called live e.g. live.domain.com maps to public/live . However in public I use codeigniter.
I now have the dynamic codeigniter url:
http://domain.com/api/
which I want to map to my subdomain:
https://live.domain.com
So going to:
https...
Hi,
I want to debug my project in Zend Framework in Eclipse. Zend Debugger is already running bud now I have problem with Debug tool in Eclipse. It give an extra GET parametrs and the project in Zend don't like it.
I tried to google it and found this
I modifed the .htaccess file but not make it working.
RewriteEngine On
RewriteCond ...
I configured apache on 4 ports (with virtual hosts as some ports used HTTPS) and the aim is to redirect post requests to different servlets running in a TOMCAT instance on some other machine. The calls are made from a httpclient (java client) . When I run the client it throws the error 301 Error: Moved Permanently. Need hints/tips/help o...
The Zend Framework based site I have been working on is now being migrated to its production server. This server turns out to be nginx (surprise!). Naturally the site does not work correctly as it was developed on Apache and relies on an htaccess file.
My question is... anyone have any experience with this? Any ideas on how to translat...
I want to redirect URLs from an old site that used raw URL requests to my new site which I have implemented in CodeIgniter. I simply want to redirect them to my index page. I also would like to get rid of "index.php" in my URLs so that my URLs can be as simple as example.com/this/that. So, this is the .htaccess file I have created:
...
So, I got ZF MVC site and want to force SSL connection on everything under my /checkout/
I tried using mod_rewrite for that, so my .htaccess would look like this:
RewriteEngine on
RewriteRule (\/checkout.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R]
RewriteRule !\.(js|ico|gif|jpg|png|css|swf|xml|avi|flv|mov|mp3|wav)$ index.php [L]
Sure...
Is this valid and correct?
RewriteRule ^myOldPage.html$ /index.php#info [R]
I'm specifically interested about the #info part.
...
On my Joomla site, I've added some fairly straight-forward RewriteRules to my .htaccess file. They're all one-to-one rules like this, since I'm changing the file structure of the site and don't want to break my old links.
RewriteRule ^content/view/54/48/$ /courses [R]
These are in addition to the existing rules that come packaged with...
I have a series of RewriteRules in .htaccess for my site which I'm in the process of restructuring.
# Requests for http://example.com/contents/section/4/48/
# get redirected to http://example.com/courses
RewriteRule ^content/section/4/48/$ /courses [R=301,L]
This is working fine, except that right now I've got the new and unreleased s...
I have quite a few RewriteRules in my .htaccess that looks like this
RewriteRule ^something/(\d+)/start /index.php?ix=$1
RewriteRule ^embed/something/(\d+)/start /index.php?ix=$1&fEmbed=1
The only difference between these two is the leading "embed/", so I was thinking it would be beneficial to combine these into a single Rewrite...
I have a site with URLs like this:
http://domain.co.uk/subdir/page.php
I have redesigned the site so URLs are now like this:
http://domain.co.uk/page.php
How can I 301 redirect all the pages to their new locations using Apache's mod_rewrite?
...
I've just deployed a new site using Zend Framework. Due to the popularity of my tutorials I'd like to redirect any request for a tutorial to the relevant page on the new site. So far this is what I've got:
URL before Rewrite: http://neranjara.org/tutorials/?tid=56
URL after Rewrite: http://neranjara.org/article/id/56
The .htaccess fil...
I've used the following code to map https://live.example.com on to http://example.com/api
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} =on
RewriteCond %{HTTP_HOST} ^live\.example\.com [NC]
RewriteRule (.+)$ "http://example.com/api/$1" [L,P]
The following url:
https://live.example.com/userlinks/xml/John%20James/MvP...
Hi i need a very quick fix in a mod_rewrite expresion for drupal we have
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
But i need to redire...
I need to set up some RewriteRules to redirect a URL which has a space in it. I've tried this:
RewriteRule ^article/with%20spaces.html$ /article/without_spaces.html [R=301,L]
... but it doesn't work. Putting in a space instead of %20 causes a 500 Internal Server Error. How do I add a space?
...
I have a relatively complex .htaccess file to control page requests, this currently redirects all requests of files (with some type exclusions) to an index file, with an exception of one directory that includes a WordPress installation.
I now need to enable the WordPress PermaLink support but I'm having some difficulty modifying the .ht...
I would like to redirect the following as an example:
A.olddomain.com.au/blah.html > A.newdomain.com/blah.html
B.olddomain.com.au/blah.html > B.newdomain.com/blah.html
Essentially, I have a variable number of subdomains and I only want to change the domain name itself on the redirect.
Any clues or suggestions to try out?
Thanks....
I wanted to set .htaccess to rewrite:
example.com/bla/info/
to
example.com/info/index.php?q=bla
+
example.com/bla/info/txt/
to
example.com/info/index.php?q=bla&t=txt
I wanted the browser still to display: example.com/bla/info/txt/
I didnt want rewrite in othe level 2 rewrites. like: example.com/bla/xxx/ or example.com/ccc/zzz/aaa/
b...
I want to proxy all requests to Mongreel except for a few ruby apps that are running with fastcgi on apache.
So basically i have http://domain.com/ Mongreel app
http://domain.com/appa ruby app handled by apache
http://domain.com/app_testb ruby app handled by apache
My httpd.conf looks like this:
RewriteEngine On
RewriteCond $1 !^(app...
If I do it by typing /?id=some_text in url then index.php script works as it shuld but if I do /some_text then index.php always receives id to have value "index".
At first I had RewriteRule ^([^/]+) ?id=$1 but that returned "Internal Server Error" instead web page, then I changed it to RewriteRule ^([a-z]+) index.php?id=$1 and I stoped ...