All questions with tag [webdev: htaccess]

0

htaccess and also 301 reroutes - multiple domains

I have the adhering to which reroutes mydomain1.co.uk and also mydomain1.com to www.mydomain1.com flawlessly. RewriteCond %{HTTP_HOST} !^(.*)\.mydomain1\.com$ [NC] RewriteRule ^(.*)$ http://www.mydomain1.com/$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
0

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
0

Setting up a redirect from 'www.example.com' to 'www.mysite.com/blog'

with any luck a person can offer me a roadmap to get this done. I run a self - organized Wordpress blog at http://www.example.com which has countless posts/links such as http://www.example.com/videos/this-is-post-23/ http://www.example.com/pictures/this-is-post-34/ http://www.example.com/news/this-is-post-67/ I am currently intending in rel...
2019-12-06 14:33:04
0

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
0

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
0

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
0

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
0

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 : http://www.example.com/news/564/seo-improvements.html Does finishing an URL with an expansion have ...
2019-12-05 03:34:32
0

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 www.server.com/?ref=bar every little thing is great. Nonetheless if the demand has something like www.server.com/?ref=http://www.test.com (?ref=http%3A%2F%2Fwww.test.com) the server reroutes to 403. shtml . No redir...
2019-12-05 03:14:06
0

Adding 1 subdomain using.htaccess

Alright, so unlike various other remedies I just desire one subdomain to seem included. Claim I desired example.com/folder/page.php to be presented as foo.example.com/folder/page.php, 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
2

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
0

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
2

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]+)/$ http://thinkmovie.in/index.php/latestnews/?nid=$1 [L] RewriteRule latestnews/([a-zA-Z0-9]+)$ http://thinkmovie.in/index.php/latestnews/?nid=$1 [L] so when I attempt to access the a...
2019-12-04 01:20:34
2

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

From a blog post on http://diveintohtml5.org/offline.html (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
2

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, http://www.mysite.co.uk/about-me/ indicate http://www.mysite.co.uk/about.php : Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !^www.mysite.co.uk$ [NC] RewriteRule ^(.*)$...
2019-12-04 01:06:31
1

. 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 : domain1.com domain2.com subdomain1.domain1.com subdomain2.domain2.com all most likely to subdomain3.domain.com yet i require ...
2019-12-04 01:00:41
1

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
1

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. www.example.com/photogallery/2010/January-Spring-Photos/ to example.site/2010/January-Spring-Photos/
2019-12-04 00:59:07
3

Subdomains vs folders, for multi account/users application

So, for a multi customer internet application, what is far better : http://username.domain.com Or http://domain.com/username 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
1

Trouble with.htacess redirection

I utilize this redirect regulation to reroute customers from www.domain.com/admin to www.domain.com/wp-admin on a WordPress website. RedirectMatch 301 \@admin http://www.domain.com/wp-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