Some strangeness here. So I have build a custom theme for a client about a year ago and all has worked perfectly till about 3 days ago when I noticed that I could not login to the website. I kept and still keep getting the 'ERROR: Cookies are blocked
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 DomainA.co.uk --> DomainB.co.uk DomainA.co.uk/* --> DomainB/* DomainA.co.uk:8000/* --> DomainB:8000/
I have these links on my website: http://crw4u.be/werkgever.php (I can only add 2 urls in my question, since i'm a n00b) I added a code to htaccess so I can access these pages without the php: http://crw4u.be/werkgever It works fine with this code: R
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
I have this multi language rewrite url from .htaccess: RewriteEngine On RewriteBase /pms/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^((fr))/([A-Za-z0-9-]+)/([0-9]+)/([A-Za-z0-9-]+)/?.html$ article.php?page=$3
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
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
I have use following code in my .htaccess file for cache control in my joomla site. ########## Begin - ETag Optimization ## This rule will create an ETag for files based only on the modification ## timestamp and their size. ## Note: It may cause prob
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
I have rewritten my URLs from mysite.com/?a=QUERY_ONE&b=QUERY_TWO to mysite.com/QUERY_ONE/QUERY_TWO I have my ajax file on my root directory and when I pass a request I use: $.get('ajax-file.php', PARAMETERS, function (data) {}); But when someone vis
I have a main website (example.com). I use CodeIgniter framework there. I will also use some different subfolders like example.com/sub1, example.com/sub2. I am using Laravel framework here and those will be completely different from example.com and s
I'm redirecting a website to a subdirectory I created. The subdirectory contains an installation of WordPress and now I want to mask the subdirectory url from the website. Now it's something like http://mywebsite.com/apt/ I want to remove the /apt/ f
I would like to map multiple domains onto a main one for SEO and simplicity purposes. My three domains are webdevguru.co.uk t3chguy.co.uk mortie.org I want both of the example domains to get redirected to the main domain, keeping their subdomain and
I have got a SSL on my site www.bambinies.co.uk 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
I have a page which have link www.example.com/Test/Leisure-Tours.php?location=15. I want to rewrite the url to www.example.com/Test/Leisure-Tours/Africa. Where 15 is the id of AfricaThe best solution for this is encrypt id of africa using base64_enco
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 http://fxrehber.com/kurum.php?sef=gcm-forex to http://fxrehber.com/gcm-forex my php file handles the URLs
Let's say my domain name is website123.com and I have a subdomain of my.website123.com I've deleted the "my" subdomain from the site and want to make sure that anyone that goes to any page with a my.website123.com URL is redirected to the main w
I've got no idea how to properly use the .htaccess file and all the guides and tutorials out there aren't the easiest to understand. Here is my current code... Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %
Thanks for reading. I have done a search, read multiple posts (lost count) and still having trouble with something that seems simple. I am trying to redirect or rewrite from: http://www.mysite.com/blog/ to http://www.blog.mysite.com/ Firstly, should
You know you can make a server parse HTML pages as PHP (execute PHP code in a HTML doc) using .htaccess? Well, some people say it's bad to do so. Why? Some people also say it opens a security vulnerability in your application. How? The source code is
I have: RewriteCond %{HTTP_HOST} ^MYDOMAIN\.com$ [NC] RewriteRule ^(.*)$ http://www.MYDOMAIN.com/$1 [L,R=301] RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} ^/(user|admin|cart) RewriteRule ^(.*)$ https://www.MYDOMAIN.com/$1 [R=301,L] This effec
i have a new website (i'm building one right now) and i want to make sure i do it correctly and not redesigning after 1 month. so i have pages like: /candy /candy/chocolate /drink /drink/beer so i look on stackoverflow about how can i do this and i f
I need to password protect on specific URL, for instance anyone can access index.php but as soon as they add parameters or "GET" variables I must require valid-user. index.php -> sweet index.php?prev=1 -> require valid userInteresting ques
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
Why is my htaccess file causing a 500 error? I am trying to get it so when anyone enters http://www.example.com/24 it will run the script for the 'key' 24 but the server reads http://www.example.com/?key=24. Php script on index.php: <?php include("
I have this rule which works great and adds a trailing slash for every directory on my site. How Can I add trailing slashes for only certain directories such /courses/ ? I don't want every directory / path to have a trailing slash. RewriteCond %{REQU
I am trying to make my pages seo friendly. I have a links in my page. http://abc.com/test.php?Section=pages&title=feedback+%26+enquiry it works fine and title has value "feedback & enquiry". I changed above link to: http://abc.com/pages/
I am trying to rewrite URLs ending like (not only exactly equal to) this: comments/The-Latest-Out-of-Pakistan/68 into URLs ending in this: comments/index.php?submissionid=68 Below is what I have in the .htaccess file, but it's not working. RewriteEng
Is it possible to protect a single URL through .htaccess? For example I will have website.com/index.php?skin=name. Can I password protect only this url? (with no PHP changes, only .htaccess) website.com/index.php or website.com/index.php?skin=other_n
At my work we have various web pages that, my boss feels, are being ranked lower than they should be because "mywebsite.org/category/" looks like a different URL to search engines than "mywebsite.org/category/index.php" does, even thou