Tagged Questions
1
vote
1answer
113 views
Apache URL Rewrite
I'm trying and failing to get a URL rewrite working, firstly I'm doing it in the vhost declaration, is that right?
What I'm trying to do is take any URL which has;
view.php?id=[a 1 or multidigit ...
0
votes
0answers
437 views
htaccess rewrite rules converted to nginx not working?
I used this tool and converted my rules to Nginx. However one rule doesn't seem to be working.
My working .htaccess rules are:
RewriteRule ^(.*)\.html $1\.php
RewriteRule ^(.*)/settings\.html$ ...
2
votes
2answers
290 views
Apache Rewrites not working due to Akamai
I have a website which is setup with akamai. My domain and subdomains are mapped onto an Akamai IP.
I have written an Apache rewrite which does an internal URL X to another internal URL Y. This ...
2
votes
2answers
69 views
Can you rewrite the root?
Not sure how to word this one but will explain most I can.
I am trying to make the following happen.
Re-write this http://domain.name
To this http://domain.name/home/
Is it possible ?
update
...
3
votes
3answers
275 views
.htaccess URL rewrite
I used to have a rewrite rule to
RewriteRule ^([^/]+)\.htm$ index.php?c=$1 [NC]
RewriteRule ^([^/]+)\.htm/([0-9.]+)$ index.php?c=$1&amt=$2 [NC]
Now, I have to change to
RewriteRule ...
1
vote
3answers
804 views
apache rewrite .htaccess google adwords gclid
I've got an url coming in as:
/index.php?/location/&gclid=287ejek22kj
This is going to a 404 page because of the gclid...
I need it to go to:
/index.php?/location
I've tried this, with no ...
3
votes
2answers
4k views
Rewrite for robots.txt and favicon.ico
I have setup some rules in which subdomains (my users) will default to where I have located the robots.txt, favicon.ico, and crossdomain.xml
therefore if a user creates a site say
...
0
votes
2answers
80 views
RewriteRules targeting a directory result in a gratuitous redirect
I have a standard CMS-like RewriteRule set up in my .htaccess:
RewriteRule ^(.+)$ index.php?slug=$1
Let's say I have a directory called "foo" in the root directory. For some reason, if you hit the ...
4
votes
1answer
4k views
Properly force SSL with .htaccess, no double authentication
I'm trying to force SSL with .htaccess on a shared host. This means there I only have access to .htaccess and not the vhosts config. I know you can put a rule in the VirtualHost config file to force ...