URL rewriting module for the Apache web server. It is commonly used for so-called "pretty" URLs, but also provides the power and flexibility to perform various request handling tasks beyond simple substitutions.

learn more… | top users | synonyms (3)

-1
votes
0answers
18 views

htaccess rewrite rule based on Cookie

I want to redirect the request to a different site by checking whether the cookie "MY_cookie" is set or not. If its set, redirection should happen. This is the code that i am currently using, But not ...
0
votes
2answers
8 views

.htaccess RewriteRule if exists in subdirectory

I had some experience with .htaccess and the mod_rewrite but I can't get this to work. Basically I wan't all URLs redirected to index.php EXCEPT those who point an existing files in the "public" ...
0
votes
0answers
4 views

Registrar and host do not allow changes to DNS options

One of my clients has a .co.il top level domain; he has recently changed his hosting to godaddy and kept the domain with his Hebrew registrar. Upon changing, he no longer has access to change his ...
0
votes
0answers
14 views

MOD Rewrite keeps adding extra parameter to URL and loops indefinitely

I have a website that has mod rewrites changing URL parameters for SEO. I am trying to add a 301 redirect to it so that the empty subcategory page redirects to the subcategory page with a name of the ...
2
votes
2answers
28 views

URL Mod Rewriting

I am using codeigniter for my website, and before theres always that index.php? on my every url or links, for example mysite.com/index.php?/about Google has indexed all of my urls with that ...
0
votes
1answer
12 views

How to rewrite part of a url using apache rewrite rule?

www.example.com The site has categories like: reptiles, vegetables, countries And pages within each category, with urls like: www.example.com/reptiles/iguana.html ...
0
votes
0answers
7 views

Using htaccess to force https not working for full urls with htpasswd

I am currently using htaccess to force all http requests on my apache2 server go to https. https is setup and working properly. The htaccess rewrite is working if i use just the base domain name (ex: ...
0
votes
1answer
10 views

rewrite spaces to redirect to underscores when following a specific domain url string and only

how to write a modrewrite that will replace a space %20 with an underscore that will look like this. http://cityinsider.com/b/ocean%20shores_wa/mikes-seafood-ocean-shores will redirect to ...
0
votes
0answers
8 views

How to convert Dynamic URL to Static URL - So that the PHP Sends an URL to browser and .htaccess converts it and sends its back to the PHP

I am new to .htaccess, I tried googling every questions I had on .htaccess to understand. I found few tutorials, but I am couldnot understand anything. First Question: What is the difference between ...
0
votes
0answers
16 views

.htaccess with redirection won't work

I have enable mod_rewrite in my linuxmint 15. But .htaccess wont work. Here is my apache configuration <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot ...
0
votes
1answer
14 views

mod_rewrite: how to redirect everything except 2 files to “/”?

I have a bit of a problem with a mod_rewrite configuration. I want to redirect everything to the root directory (http://www.mydomain.com/), except for two files. So I tried this: RewriteEngine on ...
0
votes
1answer
10 views

.htaccess redirect QUERY_STRING and not propage QUERY_STRING

I would like to make a permanent redirection of /ask?search%255Bto%255D=test to /question/test I add in my .htaccess RewriteCond %{QUERY_STRING} ^search%255Bto%255D=([a-zA-Z0-9\-]*) ...
0
votes
1answer
19 views

.htaccess condition that works on many conditions inside

I want to try something like if in .htaccess: I want to Redictes each ?sp=SOMEWHAT to diffrent ?p=NNN (some number) I have a 100 ?sp= pages. And I don't want to work on 100 Rules each page load. If ...
0
votes
3answers
31 views

PHP - Alter URL to hide querystring and display page title instead

I have a selection of pages which currently have a url which looks something like this: www.mydomain.com/directory/?id=123 This displays a story from a mySQL table with the id of 123. What I would ...
0
votes
0answers
27 views

.htaccess redirect to 404 page if anything is written after a .php file in url

Here is my website url http://www.example.com/about-us.php and if anybody tries to open http://www.example.com/about-us.php/about-us.php it should redirect to a 404 error page, rather it shows the ...

1 2 3 4 5 757
15 30 50 per page