Transfer domain & amp; wearing with masking

So I'd like to use a htaccess file to forward a domain:port onto another domain:port In this case I'll use this example of what I want to achieve -->* --> DomainB/** --> DomainB:8000/

How to improve this .htaccess file?

I created the following .htaccess file and I am wondering if it could be improved: RewriteEngine On RewriteRule ^site$ ./site/ [L,NC] RewriteRule ^site/(.*)$ ./main/$1 [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rew

.htaccess URL rewrite breaks relative paths

I was attempting to remove the .html extension from my website URLs using a simple rewrite in my .htaccess file: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html-f RewriteRule ^(.*)$ $1.html This however succ

Rewrite of Problen .htaccess Redirect 301

I need put a redirect on a site and a have some problems. I have this original .htccess RewriteEngine on RewriteCond %{REQUEST_URI} \.json$ [NC] RewriteRule .* - [F,L] RewriteRule config/.* - [F,L] RewriteRule config - [F,L] RewriteCond %{REQUEST_FIL

Rewrite the URL to return in a $ _GET variable

I'm following a YouTube tutorial (YouTube video) and can't proceed any further without solving this problem. I've spent hours trying to fix it and have got no where. What I'm trying to do is pass the URL as a query string to then be fed back into an

Run multiple subfolder Web sites in a separate folder

I have a main website ( I use CodeIgniter framework there. I will also use some different subfolders like, I am using Laravel framework here and those will be completely different from and s

Magento using HTTPS on all pages

I have got a SSL on my site I only want checkout pages to require https, at present i get a 500 Internal Server Error on every page that uses the unsecure base url (http). I think my .htaccess is forcing every page to have the htt

Rewrite the URL with the htaccess file

I've searched through countless blogs and looked at stack overflow questions about this and I still just don't understand it. What I have is a blog website with the url as: But I want to use mod rewri

RewriteRule a & lt; img src = & hellip; & gt; or other solution

I want my IP cam streaming on my website. Since I have this piece of code but if you look at the source code, you'll see of course the complete data as user and pass. That is not the intention, I looked at RewriteRule option in .htaccess but don't kn

external links without http | https fails

I'm not very good at regular expressions at all. the RewriteRule I use is: RewriteRule ^([a-zA-Z0-9_-]+)$ /kurum.php?sef=$1 [QSA] Which converts to my php file handles the URLs

Rewrite a link, mod_rewrite

In shop, I have categories and products, for example. Categories are formed as localhost/categories.php?categoryid=*** where categoryid can be ANY WORD. Products are formed as localhost/products.php?categoryid=***&productmanufactor=***&productname

.htaccess for SSL?

I have: RewriteCond %{HTTP_HOST} ^MYDOMAIN\.com$ [NC] RewriteRule ^(.*)$$1 [L,R=301] RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} ^/(user|admin|cart) RewriteRule ^(.*)$$1 [R=301,L] This effec

What does this regex / re-write do?

In the following code, what does the regex do? RewriteCond %{REQUEST_URI} ^/(?:[A-Za-z]+(?:/[A-Za-z]*)*)(?:/\d+)?$ RewriteRule .* var/www/%1/index.php [L] What is the outcome of the re-wrtie rule? Thanks, I am helping a friend fix an old CMS and I do

.htaccess mod_rewrite problems

So here's the thing .. I've been working on my webpage for some time now. I have a .htaccess in the root folder that contains only a few rows of rewriting rules and nothing else. It works fine on localhost but when I upload it to my host it just thro

URL Management - PHP vs Apache Rewrite

Currently I let a single PHP script handle all incoming URLs. This PHP script then parses the URL and loads the specific handler for that URL. Like this: if(URI === "/") { require_once("root.php"); } else if(URI === "/shop")

Question RewriteEngine in .htaccess

I have put this in my htaccess #Redirect all england visitor to this web page , england.php RewriteEngine On RewriteCond %{REMOTE_ADDR} ^222\.167\. [OR] RewriteCond %{REMOTE_ADDR} ^112\.111\. ........ RewriteRule ^(.*)$

Question of mod rewrite

Okay its been a while since I used mod rewrite and I created a couple of mod rewrites along time ago and forgot what they did and I was wondering what exactly does this code snippet do. Can someone please be as detailed as possible as to what the sni

HTAccess Page Redirecting a problem with & amp; sign

I am trying to make my pages seo friendly. I have a links in my page. it works fine and title has value "feedback & enquiry". I changed above link to:

mod rewrite, title slugs and htaccess

I have been taken in to provide some SEO guidance on a website which has been running since 2005. My problem is I want to use clean URLs. The code that handles the URL is hidden away in some class file. And with over a few thousand lines of code its

Configure mod_rewrite and mod_jk for Apache 2.2 and JBoss 4.2.3

My problem is as follows: I have JBoss 4.2.3 application server with AJP 1.3 connector running on one host under Windows ( for my test environment) and Apache 2.2.14 running on another FreeBSD box ( Apache acts as a "front ga

Mod-rewritten on Apache: change all URLs

Right now I'm doing something like this: RewriteRule ^/?logout(/)?$ logout.php RewriteRule ^/?config(/)?$ config.php I would much rather have one rules that would do the same thing for each url, so I don't have to keep adding them every time I add a