All questions with tag [webdev: htaccess]


htaccess and also 301 reroutes - multiple domains

I have the adhering to which reroutes and also to flawlessly. RewriteCond %{HTTP_HOST} !^(.*)\.mydomain1\.com$ [NC] RewriteRule ^(.*)$$1 [R=301,L] I am attempting to add an added regulation momentarily domain name, that will certainly reroute all non www website traffic ...
2019-12-06 14:37:51

Having tough time to hide directory sites on my website

i'm attempting to hide some directory sites on my website by returning 404 not located mistake codes as opposed to restricted, the trouble is that the documents in the directory site comes to be not readily available to php. just how can i hide the directory sites by returning 404 mistake codes for them without making them inaccessible to me ad...
2019-12-06 14:36:58

Setting up a redirect from '' to ''

with any luck a person can offer me a roadmap to get this done. I run a self - organized Wordpress blog at which has countless posts/links such as I am currently intending in rel...
2019-12-06 14:33:04

Having problem rerouting old item websites and also groups to new web pages

I lately updated a shopsystem to prestashop and also imported the previous items (~ 1200), and also I took care of to maintain the old category_id and also product_id. I'm attempting to set up those 2 regulations to reroute all my old inbound web links to the new web page, nonetheless for one reason or another they constantly wind up on the 404 ...
2019-12-06 14:20:22

Htaccess 404 & 301

The website works on WordPress (most recent) and also is mounted in /htdocs/www/. This htaccess documents remains in /htdocs/www/roh/ in addition to a number of photos and also some CSS. I desire demands to the old html documents to reroute to their new WordPress web pages. I obtained a lot of it functioning, other than the instance listed belo...
2019-12-06 14:18:50

Redirection with PHP or.htaccess - which is much better for SEO?

I require one sensible suggestions - is far better to reroute with.htaccess Redirect 301 regulations, or to make use of PHP header function (after analyzing URL)? Which one is far better to Google and also SEO? Tnx in adv!
2019-12-06 13:39:11

item in numerous groups - replicate web content trouble

Possible Duplicate : Content appearing under multiple categories; anything I can do to prevent duplicate penalty? What is the most effective technique to present an item that might remain in numerous groups without generating replicate web content regarding internet search engine are worried? In the past I have actually made use of a defa...
2019-12-05 17:21:13

SEO - which URL is are the most effective?

I'm using.htaccess with RewriteRule to create SEO - pleasant URL's. Nonetheless, I have a couple of inquiries concerning this : First of all, I saw several internet sites end their URL is with.html (or an additional expansion). As an example : Does finishing an URL with an expansion have ...
2019-12-05 03:34:32

Apache rerouting : factor unidentified

I have a straightforward php manuscript. The manuscript is trivial. It simply publishes out $_SERVER. When I ask for an URL like every little thing is great. Nonetheless if the demand has something like (? the server reroutes to 403. shtml . No redir...
2019-12-05 03:14:06

Adding 1 subdomain using.htaccess

Alright, so unlike various other remedies I just desire one subdomain to seem included. Claim I desired to be presented as, just how would certainly I deal with doing this? The foo will certainly never ever transform, and also it just requires to be for one web page. Numerous various...
2019-12-05 03:06:05

Is there glitch with my.htaccess or exists glitch web server - side?

I'm making use of the adhering to .htaccess documents in among my subdirectories on my web server : Options +FollowSymlinks RewriteEngine on RewriteRule (.*)\.png generate.php?userid=$1 My non - manufacturing setting took care of the above simply great easily. Nonetheless, when applied on my real-time manufacturing setting and also accessed, ...
2019-12-04 01:23:32

JS and also CSS caching concern : possibly.htaccess relevant

I've been making use of the HTML5 Boilerplate for some internet tasks for some time currently and also have actually seen the adhering to concern emerging on some websites. My CSS and also JS documents, when filled by the internet browser, are being relabelled to points like : ce.52b8fd529e8142bdb6c4f9e7f55aaec0.modernizr-1,o7,omin,l.js when ...
2019-12-04 01:23:12

Rewrite regulation for clean URLs using.htaccess isn't benefiting ID after "latestnews"

I am attempting to implement clean URLs making use of . htaccess . Primarily after looking for time I figured out this code RewriteRule latestnews/([a-zA-Z0-9]+)/$$1 [L] RewriteRule latestnews/([a-zA-Z0-9]+)$$1 [L] so when I attempt to access the a...
2019-12-04 01:20:34

Where do I create the file.htaccess, in order to offer my HTML5 cache reveal documents appropriately?

From a blog post on (Wayback Machine Copy) Your cache reveal documents can be situated anywhere on your internet server, yet it has to be offered with the web content type text/cache - reveal. If you are running an Apache - based internet server, you can possibly simply place an AddType instruction in the....
2019-12-04 01:16:15

Mod revise regulation question/help

I have the adhering to ruleset in my.htaccess documents which primarily revises my php web pages and also makes them look like subfolders, so as an example, indicate : Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !^$ [NC] RewriteRule ^(.*)$...
2019-12-04 01:06:31

. htaccess mod_rewrite domain name to subdomain

I require to reroute any kind of domain name to a below - domain name. I recognize this has actually reached be feasible but also for the life of me i can not figure it out. Any kind of aid is valued. As an example : all most likely to yet i require ...
2019-12-04 01:00:41

Issue with irreversible redirect execution

I have a complicated trouble pertaining to 301 redirections I severely require aid with. I attempted to implement these via.htaccess, yet faced problem. The start of my.htaccess resembles this : SetEnv PHP_VER 5 Options +FollowSymlinks RewriteEngine on # Redirect non-www to www RewriteCond %{HTTP_HOST} !^(www\.|$) [NC] RewriteRule ^ http://ww...
2019-12-04 00:59:26

Redirect website traffic from a details subfolder to a various domain name with managed course in.htaccess

How can I write a.htaccess mod_rewrite regulation to reroute all website traffic to a details subfolder to a various subdomain, yet include all the routing URI and also link framework and also in a SEO pleasant means. ie. to
2019-12-04 00:59:07

Subdomains vs folders, for multi account/users application

So, for a multi customer internet application, what is far better : Or I would love to get responses concerning protection, scalability and also upkeep especially, application is php based, so it is.htaccess based for link revising.
2019-12-04 00:58:48

Trouble with.htacess redirection

I utilize this redirect regulation to reroute customers from to on a WordPress website. RedirectMatch 301 \@admin The trouble is that rather rerouting to wp-admin/, it redirects to a write-up called Administrators are outstanding individuals (slug : administrators-are...
2019-12-04 00:48:29