You should not externally redirect requests to an image script, you should instead internally rewite those requests.
What code have you tried so far?
The position of the code in the .htaccess...
Type: Posts; User: g1smd
You should not externally redirect requests to an image script, you should instead internally rewite those requests.
What code have you tried so far?
The position of the code in the .htaccess...
The first big block of code is for a rewrite. This matches certain URL requests then fetches the content from inside the server by changing the internal pointer to point at a different internal...
The index.php and index.html URLs are two separate pages, the same as page1.html and page1.php are two separate pages.
The problem comes, not in having two files with "index" in the name, but in...
I often find that .png images give small file sizes while retaining most of the quality. YMMV
There are two configure.php files to edit. One in the root and one in the admin folder.
Did you do them both?
The URL format www.example.com/p156-product-name is even better. The RegEx parsing from left to right can immediately pick up the product number, and will operate faster. The scripting can also still...
The first ruleset produces a 302 redirect and does not redirect www requests with an appended port number.
The second ruleset never gets to run. Even so, the L flag is missing from that rule.
...
Tidied up:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.livvylou\.co\.uk)?$
RewriteRule (.*) http://www.livvylou.co.uk/$1 [R=301,L]
Escape all literal periods, \.uk for example.
The...
Escape literal periods.
The additional ( ) ? is required otherwise HTTP/1.0 requests with blank hostname in request result in infinite redirect loop.
The [L] flag is required to end mod_rewrite...
You turn the mod_rewrite RewriteEngine "on" and then use the Redirect syntax. Redirect is not a part of mod_rewrite. Redirect cannot deal with URL requests that include parameters. RewriteRule with...
That code cannot possibly work.
RewriteRule cannot "see" parameters attached to a URL.
A preceding RewriteCond looking at QUERY_STRING is required.
RewriteCond %{QUERY_STRING}...
Indeed.
I would far rather have these product URLs indexed:
www.example.com/34383-red-widget
www.example.com/32568-orange-appliance
www.example.com/42754-blue-gadget...
A logical URL structure will always help searchengines better index a site. URLs with multiple parameters cause various Duplicate Content issues, issues that can be more easily controlled by not...
Showing URLs with session IDs leads to infinite Dupicate Content problems.
This needs fixing, and very soon.
Look again at what was deleted and the context.
The internal rewrite now only works when the hostname is non-www.
Requesting any part of the site at www probably now results in a 404 error...
That line was
and has completely broken the intended functionality of the code.
You certainly do not want the same tag data on every page. That would not help your indexing in any sort of positive way.
The title and meta description tags on each page should be unique and...
The HTML page you see is the output sent by a series of PHP scripts in many different files. One PHP file might assemble the header part of the page, another might be for the navigation part, several...
FTP makes it very easy to download a file, modify it and send it back to the site.
Displaying the home page for any 404 error is nowadays going to land up being reported as a "Soft 404 Error" in Google WebmasterTools reports, and is flagged as a negative factor in site quality. I'd...
It's somewhere in one of the ZenCart PHP files.
It's therefore likely that fixing all of those errors will make the display problem go away.
You'll need to change the order of the rules, as it is likely they are interacting with each other, or else add an exclusion to stop those requests being incorrectly processed.
Additionally,...
There's many things it could be.
The trick here is to check each one in order to discover which one it actually is.
How will your system know what "type" of page the requested URL is?
What clue is in the URL itself?
That is, if the request is for example.com/red-widget, how will your system know whether to...
Is the site being loaded in a frame?
Use "View > Page Source", or similar,in your browser to check that out.
No. As I already said, a redirect is NOT OK.
The usual directive is:
ErrorDocument 404 /index.php?main_page=page_not_found
Test it by typing something that does not exist.
Regarding trailing slashes and their omission from URLs:
The trailing slash denotes a folder URL, one that will serve the folder index.
URLs for HTML pages do not have a trailing slash, and do...
That's automatic too.
Once the blocking rule has been running for a short while, you will be able to clearly see which countries are being bocked when you look at your analytics data, especially if you can plot it on a...
... and renaming the folder using your FTP connection.
If searchengines have indexed even one page of the test site, you'll also need a redirect from the test folder to the new folder.
The reference to the 404 error page is usually in the ErrorDocument directive in your root .htaccess file.
The ErrorDocument directive MUST reference a LOCAL internal server filepath, and must NOT...
Are there any HTML errors reported by the W3C HTML Validator?
If this .htaccess file is placed in the root folder of your domain, it will redirect requests for files in the /shop/ folder to the same remainder path and filename (apart for the explicit coded...
Rule order optimised, added escaping in patterns, added non-www to www canonicalisation, and rewrite re-coded for better server efficiency:
# SSU SetUp
Options +FollowSymLinks -MultiViews...
The page <title> and the on-page content is what is indexed and ranked. The page title is the most important element of all.
The text in the meta description isn't ranked, but since it shows the...
What Character Set is defined for the page?
It should be sent in the HTTP Header or in the <head> section of the HTML page.
Let's see your code...
Yes, it will very much depend on your customer base as to whether you see a lot of IE6 traffic on your site.
From the server logs of a ZC site picked at random I see that 1.8% of May's visitors...
... and if searchengines have indexed even one page of your site: http://www.zen-cart.com/forum/showthread.php?t=150620&page=2
Realistically, how many IE 6 visitors do you actually get? Have you looked in your server logs or analytics?
It's a dead browser and it is now long after the time it should have been buried.
...
http://www.zen-cart.com/forum/showthread.php?t=155490
http://www.zen-cart.com/forum/showthread.php?t=53701
http://www.zen-cart.com/forum/showthread.php?t=153921
...
Do you clear your browser cache before each test?
Does the root URL of both the .com and .co.uk domains resolve directly to the exact same physical folder inside the server?
Which folder in the server have you placed the .htaccess file in?
...
Investigate preg_match, as it can use regular expressions, like '/^140_/' or similar.
The pattern to be checked can also be defined in a variable.
walla --> voila!
It's French you know. :smile:
Your code redirects .co.uk to .com but not when there is an appended port number. It also fails to redirect non-www to www for .com requests, with or without a port number.
RewriteBase / is the...
Install the Live HTTP Headers for Firefox extension, and look at the server HTTP transactions for those requests. There will likely be a clue in that data.
If I came across your website by chance I wouldn't immediately know what the program was for. Can I suggest you make it abundantly clear that "Apsona ShopAdmin is an add on for ZenCart and...
And what exactly was in the .htaccess file that you had to create?