hi to all,
i have a site in php.
now i want to redirect my older site url to new url.
whenever user enter my old site url in address bar using browser url must be redirect to my new url.
How can i do this using .htaccess file.
Thanks in advance.
...
I have a rwrite rule which is like this:
RewriteRule ^30/edit-print-ready-vinyl-banners.html edit_print_ready_form.php?id=30
Now I need a Rewrite rule such that if i append the dynamic parameter say "pro_id" and "osCsid" to it
likewise
edit_print_ready_form.php?id=30&pro_id=51&osCsid=hdsfjhfkjhk11212jhkjkjhkjh
Now if i use the rewr...
I have a .net url which works perfectly with the www in front of it but when the url is just http://example.net its bringing up an under construction page.
I have tried all sorts of .htaccess files but nothing is working! Help!
...
I have a site built on codeigniter but I have come accross a small issue. Basically the homepage can be accessed through 3 different urls, being:
www.domain.com/en
www.domain.com/en/
www.domain.com/en/home.html
I'd like the first and third url to redirect to the second (www.domain.com/en/).
I've been playing around with .htaccess fo...
My Perl app reveals the filename 'processing.cgi' in the addressbar when running on my hosting account, but on localhost it seems to work fine, that is, it doesn't reveal the filename 'processing.cgi'.
Here's .htaccess thats exactly the same on both locations:
AddHandler cgi-script .cgi
Options +ExecCGI
IndexIgnore *
DirectoryIndex ...
Hi,
I am trying to match a URL like: http://xy.com/test/abcd to a php script named test.php
Here is my .htaccess
RewriteEngine on
RewriteBase /
RewriteRule ^test.* test.php [L]
This matches fine when I make a request with curl like:
curl http://xy.com/test123
But it the rule does not seem to match the following call (getting a h...
I've been stuck for a while now on how to create a "Coming Soon" page for my CakePHP site. I need to keep the webroot directory protected via .htpasswd so only authorised users can access the site whilst it's being built. However, regular visitors should be shown the "Coming Soon" page when they visit thesiteurl.com or thesiteurl.com/ind...
I am trying to alter the upload_max_filesize to 4M using .htaccess
php_value upload_max_filesize 4M
But PHP continues to cap the size at 2M
upload_max_filesize 2M 2M
Any suggestions?
...
Hello.
I am trying to do an invisible (transparent ?) rewrite via .htaccess and the proxy flag. It works with the [R] flag but not with the [P] flag because it just gives a 500 error. The two domains are on separate servers and the mod_proxy module is enabled. Is my .htaccess correct ?
Options +FollowSymLinks
RewriteEngine On
RewriteBa...
Hi,
Hope you are fine.
I have a problem, if you can help me.
#My rules (in this order):#
(WORKING:)
RewriteRule ^artists\/(.*[^discographies])\,([0-9]*)\/$ /artists/artist.php?id=$2 [L]
URL: /artists/B/barrington-levy,869/
(WORKING:)
RewriteRule ^artists\/(.*[^discographies])\,([0-9]*)\/discography\/$ /artists/discography.php...
hi, i need to redirect temporally a domain to a subdomain, this is my code for .htaccess:
Redirect 302 / http://m.domain.com/
this works great, but i have some subdirectories like: http://domain.com/photos, the code above redirects this way: http://m.domain.com/photos
i have a lot of subdirs and sub-subdirs, how i can redirect success...
Hello,
My site is in zeus server. Now i need to redirect my site to secure site using https. I found that url rewriting code different for zeus server. How do i use url rewriting code? Any help will be appreciated. Thanks in advance.
...
Hello
I have 2 scritpts on 2 different folders.
One on them need the register globals to On and the other to Off.
Is it possible to enable regsiter globals on one folder and disable it on another one ?
(maybe with a .htaccess ?)
regards
...
I have the following .htaccess file on my webroot:
DirectoryIndex index.htm index.html index.php AddType application/x-httpd-php .htm .html
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:REDIRECT_STATUS} 200 RewriteRule .* - [L]
RewriteCond $1 !\.(gif|jpe?g|png|ico|css|js|pdf|mp3|flv|swf)$
RewriteCond %{REQUEST_FILENAME} !-f Rewrite...
Hello everybody,
I found a way to redirect (not load, but change the URL) "/" to "/home.html". And now I want to add a RewriteCond to avoid the redirection if the file "/index.html" exists.
I tried (without the comments), but it didn't worked :
# We check that we comes from "domain.tld/"
RewriteCond %{REQUEST_URI} =/
# We check that ...
Hi there,
I'm using a WordPress with its default .htaccess and I need to redirect all urls starting with https:// to http://. My server is using the same folder for http and https protocols...
this is my current .htaccess:
# BEGIN WordPress <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase
RewriteCond %{REQUEST_FILENAME} !-f
Rewri...
Hi,
In one of my CakePHP site, I got this error.
Request Entity Too Large
I don't know what is the problem. I think the data that I am posting through form is too large. I searched this in search engine and got that I will have to increase post_max_size. Be default I think it is set to 8M.
But don't know how to increase post_max_size...
So I've been in the process of improving the SEO of a wordpress blog I took over at my job. As I have learned more I have wanted to change the permalinks. Originally the permalinks were all /year/month/day/postname/. First I changed them to just / postname/, but then I wanted to do a better job siloing. So a few weeks later I changed the...
I am using codeigniter and below is my htaccess file. However, i want a single directory to be accessable outside of the codeigniter app via my domain.com/directory. the other directory is a forum not related to codeigniter. how would i set up a rule in htaccess? i dont have access to http.conf
<IfModule mod_rewrite.c>
Rewri...
Hello everybody !
Do you know how I could do to use a variable to define the AuthUserFile in a .htaccess file ? Like :
RewriteRule ^ - [E=BASE:%{DOCUMENT_ROOT}mysite/www/]
AuthUserFile %{ENV:BASE}admin/.htpasswd
It don't work...
Here is my full .htaccess file (if you want to understand why I need to do that) :
Any help would be real...