Hello Nintendo, The following code added to my hostgator account .htaccess what they did ? and what its for ? and would it hurt any robots SE ? # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all[CODE] Code (markup): </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName www.siteurl.com AuthUserFile /home/siteusername/public_html/_vti_pvt/service.pwd AuthGroupFile /home/siteusername/public_html/_vti_pvt/service.grp[/CODE] Ive change it to the following so it redirects http://site.com to http://www.site.com Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^siteurl\.com RewriteRule ^(.*)$ http://www.siteurl.com/$1 [R=permanent,L] Code (markup): Thanks for your help once again Nintendo
Hi Jesse and DP members. can i replace the %20 with + on mod rewrite i have succesfully modified the mod rewrite book authors to work with the URL http://example.com/firstname lastname.html can i use mod rewrite and .htaccess to make it look like this? http://example.com/firstname+lastname.html thank you.
Looks like front page. Is this perl or php? What's the code from the script that changes it to %20? Odds are, where you put that, just changing it to + would do it. If the URL works with the space, you probably don't need to change the .htaccess code.
Not sure if this is the right place to post it, but I still hope... We used Site1 and Site2 with one domain. Since it is considered as black hat, we separated the sites: Now Site1 is our major site, And Site2 has homepage only. The problem is that now Site2 has OLD pages with PR on Google, and we are starting to loose them (404 - page not found) What is the best way to not loose the site2 pages on search engines? After all, we'd want them to point to our major site! Please note that the pages are dynamic: http://www.domain.com/index.php?opti...d=12&Itemid=10 Many thanks!
Redirect everything to the new domain. Something like Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
I have chaned all my file names from dashes to underscore. www.inetbridge.net/driver/asus-mb-23.html I need to change this to www.inetbridge.net/driver/asus_mb_23.html Can this be done? Thanks
Bad move!! Even Google has said -'s are better than _'s!! Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase /driver/ RewriteRule ^([^.]+)\-([^.]+)\-([^.]+)\-([^.]+)\.html$ http://www.inetbridge.net/$1_$2_$3_$4.html [R=301,L] RewriteRule ^([^.]+)\-([^.]+)\-([^.]+)\.html$ http://www.inetbridge.net/$1_$2_$3.html [R=301,L] RewriteRule ^([^.]+)\-([^.]+)\.html$ http://www.inetbridge.net/$1_$2.html [R=301,L]
OK this should be easy, hope someone can help. can't seem to get it working myself. http://www.mysite.com/directory/Food/?p=2 to http://www.mysite.com/directory/Food/Page2.htm Thanks
domain.com/.htaccess Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^directory/Food/Page([^.]+)\.htm$ directory/Food/index.php?p=$1 [L] Change index.php to what ever the index file is.
Hi, I have my url like this at the moment: www.mydomain.com/index.php?show=2&go=sidor/boka.php&page_id=31&lang=se and wounder how should my .htaccess file look like? I have all my pages stored in directory "sidor" so next question is where should I put the .htaccess file?
I would like the url to be: www.mydomains.com/sidor/boka.php/lang/se but I don't now if thats possible? Otherwise maybe: www.mydomains.com/index/show/2/go/sidor/boka/page_id/31/lang/se Or if you can give me some examples. For your knowledges I have a database connected to my site and show is driven my menu, go decide the page, page_id the content and last is lang who decide english or swedish.
The show and page ID numbers would probably need to be in the URL. mydomains.com/index/show/2/go/sidor/boka/page_id/31/lang/se Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^index/show/([^.]+)/go/([^.]+)/page_id/([^.]+)/lang/([^.]+)$ index.php?show=$1&go=$2&page_id=$3&lang=$4 [L]