224 Topics

Member Avatar for
Member Avatar for SoN9ne

I have no issues with setting up the mod_rewrite and having it create the clean URLs. My question is for more experienced htaccess users and I am wondering if there is a simple solution to my dilemma. My URLs without the cleanup look like: index.php?ctrl=portal&mode=main or index.php?ctrl=portal&mode=edit&id=2 I want my …

Member Avatar for djcodesa
0
237
Member Avatar for lifeworks

Hi I wasnt sure where to stick this, so Im asking this crowd I am putting together a website which works on an MVC principle, my own framework, and need some help with the .htaccess file. Specifically, if I want to make a pdf available for download, my url parser …

Member Avatar for lifeworks
0
6K
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 ahmksssv

hi, how can i access the .htaccess file. i have been created a .htaccess file and write the code wat i want. this is working fine when i should type url with correct formate which i mention in the .htaccess file. i want to redirect page automatically.. plz give me …

Member Avatar for maba001
0
142
Member Avatar for fuchsia555

hi everyone is it possible to point images to another website ? i mean for example: this domain doesn't host the image > [url]http://domain1.com/image.gif[/url] this domain host the image > [url]http://domain2.com/image.gif[/url] i want when i request ( [url]http://domain1.com/image.gif[/url] ) it's point to the image on domain2 is it possible by …

Member Avatar for damnpoet
0
111
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
126
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
Member Avatar for ulysnep

Hello All, I apologize for what seems to be a simple thing to solve but I'm not sure why I can't get the correct result below. Here is the code and the problem: I'm using .HTACCESS to password protect a directory. I'm taking the username and storing it in a …

Member Avatar for diafol
0
130
Member Avatar for diafol

Hi folks, I know this ain't php, but seemed the best place to put it for now. Am trying to mod_rewrite the following: http://www.nu.wetwork.org.uk/index.php?adran=first&tud=second to http://www.nu.wetwork.org.uk/first/second/ I'm a complete idiot when it comes to regex/apache, so any advice would be welcome. I have already managed to place 2 rules which: …

Member Avatar for diafol
0
334
Member Avatar for DaveCachia

Hi all! I have dug through the heaping amounts of mod_rewrite threads here and elsewhere and have come to no end! I am wondering if this is not working because: A) 1&1 Hosting is garbage. B) Its on a subdomain. Here is my code. [CODE]RewriteEngine On RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?username=$1 RewriteRule …

Member Avatar for diafol
0
191
Member Avatar for lifeworks

Hi Im setting up a news distribution system... sort of... i want to record everyone who downloads the news articles... so ive blocked direct linking to the pdf files using an htaccess file. my htaccess file redirects people to a page which captures where they came from ( for interests …

Member Avatar for Airshow
0
143
Member Avatar for forzadraco

i have problem with rewrite url in .htaccess [CODE] Options +FollowSymLinks RewriteEngine On RewriteBase /web/ RewriteRule ^([^/]*)$ artist.php?artist=$1 [R] [/CODE] i'm used [R] because i can see that mistake.. if i'm type: [url]http://localhost/web/djardy[/url] but it's redirect to : [url]http://localhost/web/artist.php?artist=artist.php[/url] it's should be redirect to : [url]http://localhost/web/artist.php?artist=djardy[/url] and i change the …

Member Avatar for royalrai_p
0
213
Member Avatar for JayGeePee

I was wondering if there was a way to only allow myself to access certain pages on my website? Is there a way to do this by using my ip address? And if someone with a different ip try's to access the page they are denyed or forwarded back to …

Member Avatar for edwinhermann
0
144
Member Avatar for wickedsunny

hello everyone. im using a cms and i have just changed the strucutre of my site's url making changes in the core files. here is an example what i have done. at first urls were: [url]http://www.linkzdirect.com/photo/gallery/picture-name[/url] now they are chagned to : [url]http://www.linkzdirect.cm/[/url][COLOR="Red"]art[/COLOR]/gallery/picture-name everything seems to be working fine. i …

Member Avatar for wickedsunny
0
885

The End.