Dear Friends from Stackoverflow,
Please help me with a problem that i'm having when uploading my project to
the server.
I'm using pop up's balloons (http://mckay.cshl.edu/balloons.html) for a project using Zend FW and it works fine on my localhost.
(I'm using MAMP on MacOSX) but when I upload the webpage to the server, the text inside...
I'm trying to create tiny urls like this:
site.com/abc123
goes to:
site.com/index.php?token=abc123
but I keep getting redirect loops no matter what I try, or it tries to redirect to index.php?token=index.php..
Current .htaccess is:
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteRule ^([^/]*)$ /index.php...
I have a page that is called with a url like
http://testserver/path/to/foo/bar/
but apache is serving the wrong file altogether.
/path/to/ is a real directory where all the code and .htaccess file is. foo/bar/ is supposed to redirect to foo_bar.php with a RewriteRule, but it never gets there. It's not a mod_rewrite issue as I have comme...
Hi,
I have a .htaccess redirect for "non www" like this:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
it is working. But, i have also some subdomains other than www.
If I call for example http://shop.example.com it redirects me to:
http://www.shop.example.com
I dont want t...
Trying to set up a 301 redirect for a change in domain. I'm using Textpattern which already has a mod rewrite. When adding the redirect I'm prompted with a error page on the site, stating that the page has resulted in too many redirects!
This is the htaccess file in use...
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relativ...
Hello,
Below you will find my current vHost entry that I am using for a site that I currently have under development. This vHost entry works fine when I have it on my local machine, but when I push my code to my staging server that is running this same vHost record I receive a 500 Internal Server error.
The machine I'm running this vHo...
My web framework (cakephp) uses the following rewrite conditions and rule:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
I serve up a lot of image files (~10 a second). I'm wondering if it would improve performance to have a rewrite rule that exempted requests for f...
WordPress has been installed as a blog into osCommerce. I'm trying to get the WordPress RSS feed to work. All WP core files exist, but I get all kinds of errors accessing the feed at mydomain.com/wordpress/feed/, like 404s, "the feed can't be updated because the source file is no longer available," or even raw php code in the browser fro...
hey,
im working on a little project of mine and need your help in deciding whether mod_rewrite is performance friendly or parsing each url in php.
urls will almost always have a fixed pattern. very few urls will have different pattern.
for instance, most urls would be like so :
dot.com/resource
some others would be
dot.com/othe...
I am working on a host that blocks my .htaccess file from being used so I can not change my permalinks using it. I need to figure out what code to use and where to put it in my httpd.conf file to get the same effect.
The code in the .htaccess file is below:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %...
Hey all,
I'd like to do the following:
If a user gets to a url or types it in, and it is along the lines of any the following:
/path/path/path
/path
/path/path/
I would like htaccess to forward them to that url + /index.htm before triggering a 404. Also, I would like to ignore this rule for certain paths. Here is what I was trying ...
This may seem like a silly question but I can't figure it out.
let's say I have a public_html folder with various folders like: Albatross, Blackbirds, Crows and Faqs.
I want to make it so that any traffic to Albatross/faqs.php, Blackbirds/faqs.php, Crows/faqs.php etc will see the file that is at faqs/faqs.php?bird=albatross or faqs/faq...
Hi guys,
I've been trying to do the following with mod_rewrite
on the server there is a file about.htm (which is found in the root directory of the domain)
I need to redirect about.htm to about/
On the server still keep about.htm, hence when about/ is called, it actually loads up about.htm
I tried something like this:
RewriteRule ^...
I'm working on a site, and its CMS used to save new page urls using the underscore character as a word seperator.
Despite the fact that Google now treats underscore as a word seperator, the SEO powers that be are demanding the site use dashes instead.
This is very easy to do within the CMS, and I can of course change all existing URLs...
I'm using Apache 1.3 with mod_rewrite it doesn't support the cookie|CO flag for rewrites. The code bellow works fine in Apache 2.0
# Works fine with Apache 2.0
RewriteRule ^/$ http://www.example.com/rs/ [CO=name:value:.example.com:240:/,R=301]
Is there a way to do the same with Apache 1.3?
Can I use:
Header set Set-Cookie "name=valu...
I am trying to redirect an old URL that uses a query string to the new url that does not..
/tripinfo.cfm?RiverNameID=1&AdventureID=6
Now needs to go to
/trips/big-ass-river/overnight.html
So I am trying..
RewriteRule ^tripinfo.cfm?RiverNameID=1&AdventureID=6$ /trips/big-ass-river/overnight.html [R=301]
But this is not work...
Hello all
I have a problem, suprice ;)
i use .htaccess in Apache and have a RewriteRule problem
my code is
RewriteRule ^(.*)$ /system/header_codes.php?oldurl=$1
how can i make if its not have a true ( rewriterule ) soe use this, i will use its becures i create a dyanmic RewriteRule for my customer in my System.
i hobe for h...
Hey,
I got a working webpage with CodeIgniter. I did now just upload it to my webserver and it gives me a 404 error.
The browser address is "web-page.com/folder/en/about"
The baseurl in the config is "web-page/folder/"
Also this is in the config.php, I did try AUTO but it does not work either.
$config['index_page'] = "";
$config['ur...
I am using the recess php framework with lighttpd
Does anyone know how I can use the shorter urls of:
http://www.myserver.com/recess
Instead of:
http://www.myserver.com/index.php/recess
The recess readme file says that if I have mod_rewrite I can use the shorter url:
-- "Do you have mod_rewrite?
-- Yes: Open your browser to the...
Hi,
I have been developing web applications for a while now. My applications have been fairing poorly in search engine results because of the dynamic links that my websites generate.
I admire the way some developers do their mod_rewrite to produce something like:
http://www.mycompany.com/accommodation/europe/ to run a substitute of "in...