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. So from what I understand I can fix this issue with htaccess 301 rewrites? Can anyone please provide examples on how to handle either or both issues, with either a link to an explanation of how this works or if you can explain it yourself that's great. I'm hoping there …

Member Avatar
+0 forum 0

Hi folks, I have a situation that's most easily explained via example, I think. So here goes. Let's say I have the following URLs: 1. /page.asp?id=123 2. /page.asp?id=123&category=ABC 3. /page.asp?id=123&category=ABC&var3=X&var4=Y I need these pages redirected. Currently links 1, and 2 redirect correctly. Option 3 though can have an arbitrary number of other parameters with arbitrary values. What I need to do is, for page.asp, ignore all parameters aside from id and category. Is there a way to do this with rewrite rules? If not, would it be possible to do if I did have the names of the other parameters? …

Member Avatar
Member Avatar
+0 forum 5

Hi guys, I have this weird .htaccess rule that is used for a dropdown search engine RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+) index.php?bla1=$1&bla2=$2... and so on [L] If I want to maintain the above rule, it is allright. The problem is that I want to creat a new rule with 3 variables, but the above rule is overwriting everything and it does not let me, what should I do? If I rewrite the above rule, I will loose some important SEO ranking points. Thanks in advance, Szabi Zsoldos

Member Avatar
Member Avatar
+0 forum 2

I have just installed xampp on a windows 7 os and downloaded my working web application into C:/xampp/htdocs/myweb calling the website with localhost/myweb brings up the home page try calling a specific page like localhost/myweb/about.html is redirected to localhost/xampp/ calling a specific page with localhost/myweb/index.php?include=about shows the correct page I am suspecting the problem in the setup of apaches mode rewrite or virtual host. Apache configuration in the above respect: #LoadModule reqtimeout_module modules/mod_reqtimeout.so LoadModule rewrite_module modules/mod_rewrite.so #LoadModule sed_module modules/mod_sed.so # Virtual hosts Include conf/extra/httpd-vhosts.conf <VirtualHost *:80> DocumentRoot "C:\xampp\htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "C:\xampp\htdocs\myweb" ServerName myweb </VirtualHost> Adding <Directory …

Member Avatar
Member Avatar
+0 forum 5

I want to do a redirection where a user enters their user name in the URL and redirects to their profile, like this: example.com/joe redirects example.com/profile.php?username=joe I want to do it like Facebook does

Member Avatar
Member Avatar
+0 forum 14

Upon uploading my site files to a GoDaddy hosted website -- with a "coming soon" sort of maintenance page I'm assuming is generated by GD (headline "Future home of something quite cool") -- that's on a shared FTP account for which the root is a different domain and there are others under it (root site), but the root site has no htaccess file and the /www/ htaccess file is blank, for one thing; I know mine works, does on my localhost; and so from the root site folder '/', the subject site's path is 'www/site/', and subsite.com shows the placeholder …

Member Avatar
Member Avatar
+0 forum 1

can anybody please tell me how rewrite .php files to .html files in a folder. or how to rewrite urls like http://examle.com/files/ (actual path http://example.com/files.php) using web.config file.

Member Avatar
Member Avatar
+0 forum 11

dear programmers, how to show urls `(http://example.com/mtfiles/2014/2014.html)` from to `(http://example.com/2014.html)`. server at plesk panel anybody please tell me . thank you

Member Avatar
Member Avatar
+0 forum 8

Hi, I'm not sure if I'm posting this in the correct place as this is related to nginx configuration and not specifically PHP scripts. If I am posting this in the wrong section, please let me know and I will post it in the correct location (unless a Mod is able to move threads?). I'm configuring nginx on my server and I've got it mostly configured how I want. The last thing I need to do (for now) is remove ".php" from the URL if someone goes there. I have done some research on this but can only find information …

Member Avatar
Member Avatar
+0 forum 2

Hi htaccess is not working in godaddy hosting. but it is working in other servers. Please help me to solve this. Thank you

Member Avatar
Member Avatar
+0 forum 2

Hello Community, I was wondering if it is possible to use an ID ($_GET) after a file in the address bar so it would look like this http://example.com/file.php/ID_HERE Instead of http://example.com/file.php?id=ID_HERE I know there is a way of doing something like that but I'm only getting it to work on the index.php file using .htaccess This is the .htaccess code I know works for the index.php file: RewriteEngine on RewriteBase / RewriteRule ^([a-zA-Z0-9]+)$ index.php?id=$1 But I'm not sure if there is a way to change that so it works on another file, it is in the same directory as the …

Member Avatar
Member Avatar
+0 forum 13

I've run into a problem with my HTACCESS file. If I comment out this line; RewriteRule . <URL> [L] I get an error a 403 error. If I don't comment it out, I'll get this error from firefox; *The page isn't redirecting properly*

Member Avatar
Member Avatar
+0 forum 4

Any one can give a hand figure it out were is my errror in my clean url. This code is on my vhost and it's not working as I expected. I have try to rewrite the code and put in .htaccess file and still is not working. RewriteEngine On RewriteCond %{SERVER_PORT} 80 [OR] RewriteCond %{SERVER_PORT} 8080 RewriteRule ^(.*)$ https://website.com/ [R=301,L] Alias /success "/var/www/html/success.php" Alias /alreadyregistered "/var/www/html/alreadyregistered.php" Alias /checkpassword "/var/www/html/checkpassword.php" Alias /duplicate "/var/www/html/duplicate.php" Alias /invaliduser "/var/www/html/invaliduser.php" This is my new rewrite code I had put on my .htaccess. Can anyone help me what I'm doing wrong here. The alias is notworking …

Member Avatar
Member Avatar
+0 forum 6

Hi,how to force desktop view to https non www and mobile view force to use http www ?

Member Avatar
Member Avatar
+0 forum 1

i have a problem with this website after i added this piece of code to the .htaccess file #Rewrite .php to .html RewriteEngine on RewriteBase / RewriteCond %{THE_REQUEST} (.*)\.php RewriteRule ^(.*)\.php $1.html [R=301,L] the code was suppose to rewrite all the name of my pages that ends with .php to .html the problem i have now is that the server doesn't see the file.. i thought it didn't mean wether u change the name of the extension or not.. so can anyone help me out on how i can solve this please

Member Avatar
Member Avatar
+0 forum 1

Hi Everyone. I have the follwing htaccess file working just great. Basically it rewrites .php to .html and also rewrites none www. urls to www. My question is how can is remove a directory from the .php to .html rewrite rule? My pages are correctly being rewritten to .html files, but now my contact.php form has stopped working Is it possible to remove or deny the .htaccess file for certain directories within my website. Here is my htaccess file. My contact form is located at mywebsite.com/contact/index.php RewriteEngine on RewriteCond %{HTTP_HOST} ^mywebsite\.com [NC] RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [L,R=301] #Rewrite .php to .html …

Member Avatar
Member Avatar
+0 forum 2

Anyone can tell me how can I rewrite my url from www.example.com/user.php?id=1 and id=1 will get the name from mysql. Like example id=1 user name is "abcdef". Now the parameter(id=1) will get result from database and display "abcdef" to url(www.example.com/abcdef).

Member Avatar
Member Avatar
+0 forum 2

HI I'm having two wesites with same file sets I want to keep the one file set for both domains how to do this if the user visit www.abc.com the files will get from www.xyz.com kindly tell me how to do this one thing i don't want to keep file set in both side

Member Avatar
Member Avatar
+0 forum 1

I am making a website but the files are into folder a->b->c/bla.jsp is there any library that is free or a way that i can change the showing url to be more user friendly? Thank you

Member Avatar
Member Avatar
+0 forum 4

Hi, I would have a subdomain on domain A. Basicly I want to forward this to a particular page on domain B. But it's slightly complicated- I want to mask this so it looks like domain A hosts the actual page than domain B. Eg. Domain A http://something.domainA.com Domain B http://subdomain.domainB.com/particular/page?parameters=yes Desired URL in address bar http://something.domainA.com/particular/page?parameters=yes Hope that makes sense, please ask if there are any questions. Cheers,

Member Avatar
Member Avatar
+0 forum 4

Hi I want to use htaccess rewrite, which will act as below 1. http://mysite.com/?sura=x as http://mysite.com/x 2. http://mysite.com/?sura=x as http://mysite.com/x/ 3. http://mysite.com/?sura=x&ayat=y as http://mysite.com/x/y 4. http://mysite.com/?sura=x&ayat=y as http://mysite.com/x/y/ is it possible by htaccess ?? please help me

Member Avatar
Member Avatar
+0 forum 5

Hi everyone... I am just geting to grips with htaccess RewriteRules I have the following rule that redirects users to website.com/folder RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z0-9]+)\/?$ /webstores/$1/ [L] But the url is missing the trailing forward slash / when I try and open php files in the directory, I get the 404 not found error message when I add the trialing slash myself and open a php file, it opens as expected... What am I missing.... Thanks

Member Avatar
Member Avatar
+0 forum 4

I have a my URL as : www.domain.com/controller/login.php And i want to make it look it like: www.domain.com/jobtracker Please help, i have researched lots of links as i am new to this topic, but did not found appropriate solution yet.. It gives me 500 internal server error My .htacess file looks like.. RewriteEngine On RewriteRule ^jobtracker /?$ controller/login.php

Member Avatar
Member Avatar
+0 forum 2

This .htaccess throws me a 500 error. I've Googled/tried everything. RewriteEngine on RewriteRule ^([0-9]{6})$ decode.php?shorturl=$1 [L] It's for a URL shortener. I am new to this stuff.

Member Avatar
Member Avatar
+0 forum 9

How do i mod rewrite so that i have a page with a get variable is passed to parameter. I want page.php?id=67/images to go to images.php?pageId=67 Thanks

Member Avatar
Member Avatar
+0 forum 3

I have links like, #**#/Home**, **#/About** how to remove **#/** using .htaccess I have other RewriteRules and they all work fine URL's are displayed like **localhost/site/#/Home**

Member Avatar
Member Avatar
+0 forum 2

Hello, I'm trying to find a way of including a htaccess rewrite to redirect anyone visiting *http://site.com* to *http://www.site.com*. I've tried the following... RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?site.co.uk [NC] RewriteRule ^(.*)$ http://www.site.co.uk/$1 [R=301,L] ...but it broke the paths to all of my assets - adding a "www" where there shouldn't be one. How can I get around this issue? Chris

Member Avatar
Member Avatar
+0 forum 1

Hi, I have some issues on my website with my deeplinks Let me show you sample regarding this issues www.mywebsite.com/buy-online-tv.php www.mywebsite.com/buy-LCD-tv.php www.mywebsite.com/buy-cheap-tv.php www.mywebsite.com/affordable-tv.php etc.... Until here everything is fine but I got lots of visitor coming for Google and the vistor find my website and come from such URL www.mywebsite.com/buy-online-tv.php/buy-LCD-tv.php www.mywebsite.com/affordable-tv.php/buy-online-tv.php www.mywebsite.com/buy-cheap-tv.php/buy-LCD-tv.php There is anyone who can advise or tell me how to fix this issues, as all this URL aboce are actually working but website like upsidedown Best regards,

Member Avatar
Member Avatar
+0 forum 4

Hello everyone, I'm having trouble with Joomla non-existing category re-direct problem. I cannot seem to find the proper rewrite url line for .htaccess file for the following problem. I have my website http://www.dubrovnik.com I'd like to send user to my 404 Page whenever user request for non-existing link. I've managed to do it when, and it worked (IT IS DISABLED NOW ON PURPOSE) in the scenario where i type as url for example http://www.dubrovnik.com/some_misspelled_url.html, but the problem comes when I have a sub folder or non-existing Joomla category in my url. Example: http://www.dubrovnik.com/city-life - this is a working category but …

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm having a problem with what seems to be conflicting URL rewrite rules. Basically the first and second rule work individually but when i add both together the second rewrite rule no longer works. RewriteEngine On RewriteBase / RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ site/index.php?content=$1 [L] [NC] RewriteRule ^([^/]*)/([^/]*)/([^/]*)/$ /site/index.php?content=$1&pageNum_gproducts=$2&totalRows_gproducts=$3 [L] I am not great with mod rewrite so any help is much appreciated

Member Avatar
Member Avatar
+0 forum 6

The End.