-1
votes
1answer
35 views

Apache MOD_REWRITE for subdomain

Summary I have 2 servers, 1 Production & 1 Development Problem I want to keep the servers URLS the same in the code. The production server will be blah.com but I want the development server to ...
0
votes
1answer
26 views

Moving my project to a different location broke absolute links

Before my project was located in the root of domain.com. Most of hrefs are like this: <a href="/user/test">test</a> But since my project was moved to domain.com/catalog/, all of those ...
-1
votes
3answers
58 views

RewriteRule doesnt work [duplicate]

I want to convert this url http://ts.thebenamorgroup.com/g2g/category.php?cate=mens to: http://ts.thebenamorgroup.com/g2g/category/cate/mens/ I have this rule but it doesnt work: Options ...
0
votes
1answer
290 views

URL rewriting and SSL conflict

I am facing following problem. URL rewriting with .htaccess is working perfectly on HTTP URLs. Now I have installed SSL Certificates on my server and now accessing my site with HTTPS URLs. Site is ...
-1
votes
1answer
37 views

Redirect a dynamic URL with Apache [closed]

I need to make a Apache rule to redirect an specific URL http://www.domain.cl/section.do?one.second=8 --> http://www.newdomain.cl/ I was reading about using mod rewrite but all the examples i found ...
0
votes
2answers
48 views

Advice on mod_rewrite url in Apache

I'm trying to set up a mod_rewrite rule so that when the webpage www.mysite.com/blog is requested a page from the blogging service Tumblr is loaded. I have set up my Tumblr site so that ...
2
votes
3answers
128 views

URL Query String Causes Layout to Break

I have an Apache server based Wordpress site that rewrites URLs to be "pretty". When I include a query parameter in the url the site breaks. So: http://mysite.com works fine but: ...
-2
votes
2answers
564 views

How to hide query string in url?

The below is the .htaccess code which is causing the rewrite in URL, RewriteRule ^24-(.+)~(.+)\.html$ gallery_catagory.php?gallnm=$1&GalleryID=$2&%{QUERY_STRING} [nc] but still I can see ...
0
votes
1answer
382 views

rewriting a URL where a subfolder should not be visible

I have multiple domains setup with my webspace (all via a hosting provider) So www.maindomain.com links to /maindomain on my webspace. www.domain2.com links to /domain2 on my webspace. Pretty simple ...
0
votes
1answer
191 views

very simple mod_rewrite replacing “forums” to “forum”

Can somebody help me with a mod_rewrite rule for this situation? I only need to remove the ‘s’ from a forums segment. From www.test.com/test-forums/anystring/anystring or ...
0
votes
1answer
213 views

Is it possible to mod_rewrite the full url or mask the actual url altogether?

I've been looking at the Heroku custom domain feature, which enables to change a url from subdomain.heroku.com to www.whatever.com. Is something like this possible with mod_rewrite or how is ...
1
vote
2answers
316 views

Rewrite Conditions Backreferences passed to all rules?

Is there a way to get back references for Rewrite Conditions to be passed to all subsequent rewrite rules? Here's an example: RewriteEngine On RewriteCond %{HTTP_HOST} (bob).localhost [NC] ...
1
vote
2answers
375 views

How do I make a mod_rewrite rule that uses the sub-domain name to rewrite the URL?

How do I make a mod_rewrite rule that uses the sub-domain name to rewrite the URL? What I want to do is something like this: Forward requests FROM http://agency1.company.com TO: ...
1
vote
2answers
827 views

Blocking a specific URL by IP (a URL create by mod-rewrite)

We need to block a specific URL for anyone not on a local IP (anyone without a 192.168.. address) We however cannot use apache's <Directory /var/www/foo/bar> Order allow,deny Allow from ...
0
votes
1answer
95 views

Using Mod_rewrite to rewrite all requests with subdomains, what am I doing wrong?

I am trying to make it so that all requests that use a subdomain are rewritten in such a way that they are sent to the server as "regular" request without the subdomain. I have created the mod_rewrite ...
0
votes
1answer
213 views

URLs with final slash trigger hotlink protection on my server

in all my Apache servers I use hotlink protection because I hate the idea someone could stick my images/flash in their sites using my server bandwidth. In order to make hotlink protection work, in my ...
2
votes
3answers
7k views

404 Error on a file that exists?

A script makes a GET request to my URL like so: http://mydomain.com/cgi-bin/uu_ini_status_audios.pl?tmp_sid=b742be1d131c4d32237a9f1fcdca659e&rnd_id=0.2363453360320319 However, I get a 404 ...
1
vote
1answer
948 views

Clean URLS with mod rewrite and URL Encoded characters causes 404?

I have a web site using mod_rewrite to get some clean urls and custom 404 pages. My .htaccess file looks like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond ...
6
votes
4answers
4k views

Rewritten URLs with parameter length > 255 don't work

I'm using mod_rewrite to rewrite URLs like this: http://example.com/1,2,3,4/foo/ By doing this in .htaccess: RewriteEngine On RewriteRule ^([\d,]+)/foo/$ /foo.php?id=$1 [L,QSA] It works fine, ...
2
votes
1answer
898 views

Removing the /folder/ from Wordpress using mod rewrite?

I'm working on a blog installed in its own sub folder so the URL for an article looks like this: I need it to just look like this: http://www.sampleurl.com/article I'm not able to install it on ...