http://www.xyz.com/detail.php?course=InDesign_CC i want url http://www.xyz.com/detail/InDesign_CC using htaccess ......help me i try a lot but not get success.

Member Avatar
Member Avatar
+0 forum 1

The other day my boss noticed that our php pages read, and try to follow, duplicate file extentions. The pages which are displayed carry over a varying amount of the main pages attributes. The files don't exist in our remote, so we've ruled out it being a product of human error. Example: http://www.callcentermiami.com/miami-virtual-receptionists.php/ http://www.callcentermiami.com/miami-virtual-receptionists.php/miami-virtual-receptionists.php/ http://www.callcentermiami.com/miami-virtual-receptionists.php/miami-virtual-receptionists.php/miami-virtual-receptionists.php/ All of these pages show up. I can literally duplicate the extension over and over again until the end of time and it won't go to a 404 page. I know the pages don't exist and are not being indexed. I'm also aware of the …

Member Avatar
Member Avatar
+0 forum 1

Hi, Please help me work out this mod-rewrite issue while trying to make my urls SEF. RewriteEngine On Options +FollowSymLinks # Browse Category RewriteRule ^category/[!/.]*([A-Za-z]+)/?$ /browse.php?cat=$1 [NC,L] # View Item RewriteRule ^view/([0-9]+)/([a-zA-Z0-9-]+)$ /view.php?item_id=$1&sef=$2 [NC] This is my current .htacess. The browse category rule is working ok converting - http://localhost/browse.php?cat=people into - http://localhost/category/people the view item is giving a 404 trying to convert - http://localhost/view.php?item_id=28&sef=2009-bristol-blenheim-in-west-yorkshire into - http://localhost/view/28/2009-bristol-blenheim-in-west-yorkshire

Member Avatar
Member Avatar
+0 forum 10

Hey, I have all pages in my site, coming from the DB, and I get urls like this: [B]enkeltwebdesign/index.php?sid=1&titel=FORSIDE[/B] The name of my site: [I]enkelt-webdesign.dk[/I] Does someone know how to write the correct mod_rewrite, so I can change the urls to: enkelt-webdesign.dk/forside (forside = home) enkelt-webdesign.dk/webdesign (...) [I]etc etc[/I] So I want to get rid of: index.php?sid=1&titel= And only pass this to the url: /forside It is urgent, so I hope someone sees this as childs play, as I have never before made any regex related to Apache. Thank you, I hope to hear from you Regards, Klemme

Member Avatar
Member Avatar
+0 forum 15

Hi, I have used mod_rewrite quite a bit so I am surprised I cannot get this to work. I think the issue may be with the ? in the url but not sure. Background: LAMP server, php/Mysql site with mod_rewrite set up and working correctly. The main rewrite rule is this: [CODE]RewriteRule ^([^\.]+)$ /page.php?page=$1 [L][/CODE] The reason is that the client wants to have pages with no extension like .php. This works fine as the suffix is added once the php page receives the $_GET['page'] variable. Problem: The client uses various links to the site for marketing and now wants …

Member Avatar
Member Avatar
+0 forum 1

I am on a godaddy server now and trying this mod-rewrite stuff and it is still not working. I have been searching google now for hours looking for the answer and cannot find it. Here is my entire .htaccess file: #Rewrite Rules Options -MultiViews Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)(/?)$ index.php?p=$1 [L] #RewriteEngine On #RewriteBase / #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_FILENAME}.php -f #RewriteRule ^(.+)$ /$1.php [L,QSA] #RewriteRule ^c/([^/.]+)/?$ index.php?p=$1 [L] The stuff thats commented out is what I tried the first time, then I tried …

Member Avatar
Member Avatar
+0 forum 10

The End.