30 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for 8shahadat.apu1z
Member Avatar for moneeshot

I am helping a friend switch from Godaddy quick shopping cart to magento. Unfortunately the Godaddy cart automatically creates product and catalog URLS. Using caps, dashes and underscores. I can dupe the link text but magento only allows dashes and no caps, I'd rather not use caps or underscores anyway. …

0
259
Member Avatar for grakovski

Hi there, I have strange situation. In google's serp i found indexed url's like this: **site.org/index.php/2015-06-27-18-17-32/2014-05-03-23-24-55/76-m40?page=3** how to remove this **/2015-06-27-18-17-32/2014-05-03-23-24-55/76-m40?page=3** if not exists ? Maybe with htaccess, but how ? I want to redirect to index.php all url's when directory not exists. I found some rules but not working …

0
199
Member Avatar for joshl_1995

Hello Community, I'm trying to use dynamic subdomains which works but I'm only wanting .htaccess to to send subdomains without letters, numbers and underscores (_) to the 404 page. Here is my code. Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase / #Remove www. RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [QSA,NC,L] …

1
163
Member Avatar for leap_coder

Hi, In my localhost i'm getting the "500 Internal Server Error".It appears, if i add a htaccess to a website in localhost.It was started to happen recently.I enabled apache proxy module recently.After that only it satrted to happen.I don't know how to disable the proxy module.If anyone can tell me …

0
215
Member Avatar for jagobandhu

Will you please help me how can i change my link by .htaccess? My link is like http://localhost/root/?page=index i want to see it as http://localhost/Jagobandhu/index/ when im am in index page or http://localhost/Jagobandhu/contact/ when i am in contact page like as CMS. I have no idea about .htaccess I tried …

0
131
Member Avatar for tom.vardy.12

Any ideas why the get variable after this .htaccess redirect is unobtainable? RewriteCond %{REQUEST_URI} !^/admin/editsale.php RewriteRule ^admin/editsale/(.*)$ /admin/editsale.php?reg=$1 [QSA,L] Many Thanks Tom

0
96
Member Avatar for SergeyWE

Hello everyone, Wapempire is a young but rapidly developing network. Our team has many years of online marketing experience which allows us to provide the best terms of partnership for our publishers. We mostly work with mobile offers such as 1WapClick (adult/non-adult), Dating & iOS/Android apps. But it doesn't end …

0
143
Member Avatar for pzuurveen

i got a testing blog that got spammed. So I removed the entire blog. Now weeks later, my errorlog still get thousends of 404's a day. I still want to see 'normal' 404 from other sites on that server. There are no files in that dir but .htaccess: RewiteEngine on …

0
162
Member Avatar for dantheman50_98

Hi There, I'm building a site using opencart and every page on the site has an seo-friendly url except for one, which is the main page of the blog. The url for this is: /index.php?route=blog/category/home/index.php I'd like this to be just plain old /blog but I can't seem to get …

0
93
Member Avatar for bsewell

Hello, I want to make a simple website, and friendly urls would be a great step towards that. I have been trying this for 2 days without success. [url]www.mydomain.com/join[/url] redirects to [url]www.mydomain.com/index.php?path1=join[/url] [url]www.mydomain.com/forum[/url] redirects to [url]www.mydomain.com/index.php?path1=forum[/url] [url]www.mydomain.com/forum/getting-started[/url] redirects to [url]www.mydomain.com/index.php?path1=forum&path2=getting-started[/url] These directories do not actually exist. They are going to …

0
135
Member Avatar for astorum

Ok i got a problem, i want the domain directory default folder to have index2.php as default page, but i DO HAVE also index.php. so when i even visit mysite.com/index.php it only shows mysite.com/index2.php, enven entering it explicitlly this is my rule DirectoryIndex index2.php index.php (I have a reason to …

0
114
Member Avatar for Jimbest

Hi, I'm struggling to understand how to write script for Zeus web servers. I need to leverage browser cache images to get my Google page speed up. i know this is the code for .htaccess but Zeus is different: <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/html "access plus 2 days" ExpiresByType …

0
161
Member Avatar for bwaltz

I have a mobile site that the user gets automatically redirected to if they are trying to access the full site from a mobile device. I need them to be able to access the full site too, if they prefer. I have set a cookie in my htaccess file. What …

0
95
Member Avatar for jrotunda85

I am in the process of trying to customize my site's URLs and I'm running into an issue with my htaccess file, specifically the newest one I am trying to add. Here's the file -- [CODE]RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] RewriteRule ^/retail/(.*)$ retail.php?id=$1[/CODE] …

0
139
Member Avatar for ajbest

You will have to excuse if this question seems stupid but while I am a fairly skilled PHP developer I am a total newb when is comes to apache and server config. I am trying to have a single page accept all the request for directories on my site unless …

0
120
Member Avatar for timo2

Hi everyone, having a real problem with htaccess at the moment. If it can be done i bet its really simple but after hours of serching and trying ideas out i have got no where, any help would greatly be appreciated. ---- [B]problem:[/B] What i am trying to do is …

0
108
Member Avatar for thedonedeal

Is there a way to write a line in .htaccess so that a rewrite rule will NOT rewrite the URL if a certain query_string is found or if a certain page is referring to the page about to be rewritten?

0
111
Member Avatar for andy106

Hi I have added the following code to my htaccess : RewriteEngine On Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301] the above rule just makes the url more SEO friendly so for example [url]www.domain.com/home.php[/url] will become [url]www.domain.com/home[/url] BUT when I have a …

0
109
Member Avatar for Sorcher

[B]Hello! I have tried this one for a while now but i cant get it to work... [B]i want the url:[/B] [url]http://example.com/article.php?read=NzQ=[/url] [B]to be...[/B] [url]http://example.com/article/NzQ=[/url] i tried this one:[/B] RewriteRule ^article/([0-9]+)-([a-z]+) http://example.com/article/index.php?read=$1 [NC] But no luck! :'(

0
71
Member Avatar for toasty525

Hi, I have the following .htaccess file in the directory <domain>/ss/c/ [CODE] RewriteEngine On Options +FollowSymLinks RewriteBase /ss/c/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /ss/c/index.php [L] RewriteCond %{HTTP_HOST} !^www\.sexspinner\.com [NC] RewriteRule ^(.*)$ http://www.sexspinner.com/ss/c/$1 [R=301,L] [/CODE] and a index.php file with the following PHP [CODE] <?PHP $cat = $_SERVER['REQUEST_URI']; …

0
79
Member Avatar for andy106

Hi everyone, I have designed my website from 6000 static HTML pages to a more structured system. However I am not carrying over same structure so I will need to setup a bunch of 301 permanent redirects in order to keep my search rankings. (have spent a lot of money …

0
119
Member Avatar for bjc999

Hello, I am trying to map a URL to a sub path using .htaccess. Does this look right? //Rewrite to www Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.co.uk/sub-path[nc] RewriteRule ^(.*)$ http://www.domain.co.uk/sub-path/$1 [r=301,nc] //301 Redirect Old File Redirect 301 [url]www.anotherdomain.co.uk[/url] [url]www.domain.co.uk/sub-path[/url] //301 Redirect Entire Directory RedirectMatch 301 [url]www.anotherdomain.co.uk(.*[/url]) www.domain.co.uk/sub-path/$1 Many thanks!

0
113
Member Avatar for itsgrace

I have a website running xcart ([url]http://www.mysite.com[/url]) and want to run it as a secure website ([url]https://www.mysite.com[/url]). The following are the solutions I have done: 1. I have tried to enforce SSL through htaccess but it gives me INTERNAL SERVER PROBLEM Error. 2. I have created a self-signed cert through …

0
137
Member Avatar for liamfriel

Hello, Bandwidth on one of our sites was severely messed with on the 28th of this month. The cpanel only tracks daily access logs and didnt archive them(it does now), using aw stats I found our bot traffic to be as follows: Googlebot 145686+43 7.47 GB 28 Jul 2010 - …

0
123
Member Avatar for architact

Hello, I just finished creating an online site builder and now its time to launch it, I am facing a problem related to URL-Rewriting. My site builder contains all the files and folders which will make up the client's site inside a folder named as "usersite", and can be access …

0
121
Member Avatar for sci-kode

Hello all! I just wonder if it's posible to rewrite index.php, index.php?variable=some and the root to same rewrite in htaccess. If so how? Here's an example that don't work, but maybe you get the idea. [CODE]RewriteEngine On RewriteCond %{HTTP_HOST} !^myexample.com$ RewriteRule (.*) http://myexample.com/$1 [R=301,L] RewriteRule ^another-variable-in-url$ /index.php [L] RewriteRule ^another-variable-in-url$ …

0
79
Member Avatar for steven2

The web server is Apache. I want to rewrite URL so a user won't know the actual directory. For example: The original URL: [url]www.mydomainname.com/en/piecework/piecework.php?piecework_id=11[/url] Expected URL: piecework.mydomainname.com/en/11 I added the following statements in .htaccess: [CODE]RewriteCond %{HTTP_HOST} ^(?!www)([^.]+)\.mydomainname\.com$ [NC] RewriteRule ^(w+)/(\d+)$ /$1/%1/%1.php?%1_id=$2 [L][/CODE] Of course I replaced mydomainname with my domain …

0
89
Member Avatar for tuuni

How to redirect all traffic (to my site's certain htm page.. example: sub.site.com/folder/file.htm) who are not coming directly to my site. Something like this but this is not correct.. [CODE] RewriteCond %{HTTP_REFERER} !^http://sub.domain.com RewriteRule !^$ http://sub.domain.com/folder/file.htm [R=302,L] [/CODE] How can it be done?

0
125
Member Avatar for gteh

Hey, I was hoping someone could lead me in the right direction. I maintain a fairly large corporate/ecommerce site and after reviewing google webmaster tools I found over 500 404's that need to be dealt with. The list of 404's is always growing because people link to our site incorrectly …

0
94

The End.