-1
votes
1answer
52 views

IIS (or .htaccess) URL Rewrite not working correctly - need to capture number argument as query string

I'm trying to have: http://sub.domain.org/123456 become http://sub.domain.org/index.php?q=123456 I have tried many ways, and one way sort of worked, but then all subdirectories (including images) ...
0
votes
0answers
203 views

Redirect url get variables after rewriting htaccess

My original url was this: wwww.domain.com/car-details.php?merk=BMW&model=X5&titel=sale&car_id=3 I have Rewrite it into this: wwww.domain.com/BMW/X5/sale/3 By putting this in my ...
0
votes
1answer
23 views

Redirect issue: folders and files not redirected properly

I have recently set a new URL http://www.mytechnotes.biz for a blog I was maintaining on a subdomain http://technotes.tostaky.biz. The redirection works in the following cases: ...
0
votes
0answers
62 views

htaccess Rewrite leading zero in url causing trouble

I have a database with a string column made up of four unique digits attached to each record. I know this isn't the best way to do this but I'm kind of stuck with it. I'm trying to rewrite urls from ...
0
votes
1answer
527 views

how to stop htaccess URL redirect loop [duplicate]

I am new to htaccess. so when i want to do a url redirect using htacces, i always get a redirect loop, and don't know how to fix it. I have been searching on the web but coundn't find a solution for ...
0
votes
1answer
161 views

.htaccess URL rewrite to upper-case characters in domain

For example, I'd like to have foobar.com show FooBar.com This almost works, but ends up forcing a redirect loop: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?foobar.com\.com RewriteRule ^(.*)$ ...
-1
votes
3answers
59 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
333 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 ...
-2
votes
2answers
697 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
398 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
43 views

.htaccess rewrite

I want to change URLs like below: http://www.gsmsite.nl/zakelijk/product/phone?b=met-internet-250plus To: http://www.gsmsite.nl/zakelijk/product/phone?bundel=met-internet-250plus How ...
0
votes
1answer
804 views

Redirect 404 errors without rewriting the URL

Is it possible to have an erroneous URL remain in the address bar while redirecting the user to a URL within my domain? I want www.domain.com/forum to be the actual site being served in all 404 ...
1
vote
2answers
175 views

Check GET value with htaccess?

I need help with setting up a rule inside htaccess that does the following, Whenever the requested URL contains keyword love then redirect the user to another URL or maby show a 404 page. Clarifying ...
0
votes
1answer
80 views

Redirect a url to a new host

I have the following URL which displays a normal static website: www.example.com. This site is hoted on Amazon. I want to make all urls starting with www.example.com/redirect to redirect to another ...
2
votes
1answer
1k views

htaccess: how to rewrite to clean urls and redirect old urls to the new clean ones? [duplicate]

With htaccess I'm trying to make my sites urls clean. I use very basic urls like: www.mysite.com/pagename.php ("pagename" is variable). I want www.mysite.com/pagename to display the content of ...
1
vote
2answers
149 views

.htaccess 301 Redirect

I have an existing Wordpress site setup at mycompany.tld1 and recently registered mycompany.tld2. I want to setup a 301 redirect from mycompany.tld2 to mycompany.tld1, what would that .htaccess file ...
1
vote
4answers
384 views

Adding dynamic subdomains to my webserver?

I'm trying to add a wildcard sub-domain system to my web server, but its still not working, These are the steps I took: I made a new file, vhost.conf, in the directory ...
1
vote
1answer
72 views

turning urls into subdomains?

i have this url http://www.example.com/user.php?user=solomon i want to convert this into http://solomon.example.com how can i do this!! thanks :)) p.s. im using plesk
0
votes
1answer
218 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 ...
1
vote
1answer
969 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 ...
2
votes
3answers
143 views

Regex for.. URL in a URL?

I have the following line in my .htaccess file, but it keeps redirecting me to a 404 error. RewriteRule ^path1/([a-zA-Z0-9_-]+)/(.+)(/?)$ /file.php?variable1=$1&variable2=$2 [nc] An example link ...
1
vote
2answers
2k views

How do I disable hot linking and direct linking to files on my site?

Ok, I've beat my head against the wall for a few hours now and this just isn't working. Below are the contents of my .htaccess file. What I'm trying to do is block access to a set of pdf and mp3 files ...
0
votes
1answer
4k views

.htaccess rewrite rule for CSS request

Good Morning, I am trying to create RewriteRule for all request for css file within my website to css/filename.css. The procedure is all css files within my website store only in ...